[erlang-questions] Irregular list

Ladvánszky Károly <>
Thu Feb 12 16:10:07 CET 2009

Just getting acquainted with this wonderful system, I’ve run into the
following issue:


The shell seems to accept a structure like this: [a | b].


is_list([a | b]) returns true but length([a | b]) raises an exception.


Is it like an “open list” found in some programming languages?




Any help would be appreciated,




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090212/27fe5313/attachment.html>

More information about the erlang-questions mailing list