guile-devel
[Top][All Lists]
Advanced

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

(list-head lst k) with k longer than (length lst)


From: Jan Synáček
Subject: (list-head lst k) with k longer than (length lst)
Date: Tue, 17 Nov 2015 11:53:05 +0100

Hello,

I'm getting:

scheme@(guile-user)> (list-head '(1 2 3) 5)
ERROR: In procedure list-head:
ERROR: In procedure list-head: Wrong type argument in position 1
(expecting pair): ()

This looks pretty much like a bug to me. Shouldn't list-head return
the entire list when the 'k' is bigger than its length? If that is not
the case, at least the error is really confusing. I'm using Guile
2.0.11.

Cheers,
-- 
Jan Synáček



reply via email to

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