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

Of course, in OCaml that's just

    if_then_else c t e = 
      match c with
      | true  -> t ()
      | false -> e ()
   
So the question sort of becomes one of how painful thunking or anonymous function syntax is.


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

Search: