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

Data types like records and algebraic types are data structures. Here's an algebraic type for polymorphic lists:

    type 'a list = Nil | Cons of 'a


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

Search: