OCaml Toplevel
Initializing...
Code
Run (Ctrl+Enter)
Reset
Clear Output
#require "base";; (* Filter even numbers using Base.List *) Base.List.filter [1;2;3;4;5;6;7;8;9;10] ~f:(fun x -> x mod 2 = 0);; (* Map with Base *) Base.List.map ["hello"; "world"] ~f:Base.String.uppercase;;
Examples:
Base
Bit ops (JS stubs)
Yojson
PPX Deriving
Str (regex)
Fmt
Angstrom
▶
Available packages (
...
)
Output
Output will appear here...