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

OCaml has row polymorphism. The syntax for a function that prints `name` from a record that has `name` and possibly other fields is:

    val print_name: <name: string; ..> −> unit


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

Search: