Functional Programming: what is an “improper list”?
I think @Vijay’s answer is the best one so far and I just intend to Erlangify it. Pairs (cons cells) in Erlang are written as [Head|Tail] and nil is written as []. There is no restriction as to what the head and tail are but if you use the tail to chain more cons cells … Read more