[erlang-questions] Irregular list

Ladvánszky Károly <>
Thu Feb 12 18:35:07 CET 2009


Thanks everybody for the help.

 

Sorry for the confusing term ‘open list’;  I wished to refer to
Lisp’s/Scheme’s unterminated lists.

 

LKaroly

  _____  

From: Ladvánszky Károly [mailto:] 
Sent: 2009. február 12. 16:10
To: ''
Subject: Irregular list

 

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,

 

LKaroly

 

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


More information about the erlang-questions mailing list