Skip to content

Comment on F# enters Tiobe top 20 index for the first timeparent

Comments

Almost, |> isn't an operator in OCaml (although I think Batteries has something like |- that does the same thing) and printfn isn't in OCaml. Printf.printf is, but wouldn't work in this case (you'd need a format string). Also, List.map returns a new list, in OCaml you would probably want to do List.iter.

the |> operator is very very simple. ocaml implementation would look something like:

  let (|>) a b = b a ;;
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.