Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

OCaml supports this:

  # let f ~fst ~snd = fst + snd;;
  val f : fst:int -> snd:int -> int = <fun>
  # f ~snd:4;;
  - : fst:int -> int = <fun>


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: