[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: srfi-1 take and drop seriously broken
From: |
Jan Nieuwenhuizen |
Subject: |
Re: srfi-1 take and drop seriously broken |
Date: |
Sat, 19 Nov 2016 22:18:21 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Jan Synáček writes:
> scheme@(guile-user)> ,use (srfi srfi-1)
> scheme@(guile-user)> (take (list 1 2 3) 4)
> ERROR: In procedure list-head:
> ERROR: In procedure list-head: Wrong type argument in position 1
> (expecting pair): ()
That's expected.
> scheme@(guile-user) [1]> (drop (list 1 2 3) 4)
> ERROR: In procedure list-tail:
> ERROR: In procedure list-tail: Wrong type argument in position 1
> (expecting pair): ()
That too.
> Please, tell me that this is just a mistake...
It's just a mistake!
> This can't be true. I still can't believe it. This is from
> 2.0.11. Please, tell me that the implementation is fixed in 2.2.
You'd have to give me more clues about what it is that puzzles you
and why.
> Yours truly puzzled,
Do you possibbly mean something like
--8<---------------cut here---------------start------------->8---
scheme@(guile-user)> (use-modules (srfi srfi-1))
scheme@(guile-user)> (take '(list 1 2 3) 4)
$1 = (list 1 2 3)
scheme@(guile-user)> (drop '(list 1 2 3) 4)
$2 = ()
--8<---------------cut here---------------end--------------->8---
Greetings,
Jan
--
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl