chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] newbie question - nth-value ?


From: Joe Python
Subject: [Chicken-users] newbie question - nth-value ?
Date: Fri, 15 Oct 2010 21:51:48 -0400

When I try to call the builtin 'nth-value' , I was expecting a number, instead I am getting a error.


<snip>
#;1> (nth-value 2 '(2 3 4 5))

Error: (list-tail) out of range
((2 3 4 5))

</snip>


The documentation says ;
[syntax] (nth-value N EXP) 

Returns the Nth value (counting from zero) of the values returned by _expression_ EXP.


Did I interpret it wrong?

- Joe

reply via email to

[Prev in Thread] Current Thread [Next in Thread]