Talk:Flatten a list: Difference between revisions

Line 14:
==OCaml and Empty lists?==
I am curious about the Ocaml entry and its problem with empty lists. Is their not some way of telling the type system to expect one or another of two types? Maybe [[wp:Algebraic data type]] (but I'm way out of my depth here) --[[User:Paddy3118|Paddy3118]] 00:58, 17 August 2009 (UTC)
 
Doh! I have just seen the OCaml entry which has indeed been extended with an Algebraic data type solution, but sadly it misses the deep nesting around 6 and a deeply nested, but ultimately empty sub-list. --[[User:Paddy3118|Paddy3118]] 06:45, 17 August 2009 (UTC)
Anonymous user