|
From: | Panicz Maciej Godek |
Subject: | Re: srfi-1 take and drop seriously broken |
Date: | Sun, 20 Nov 2016 12:23:46 +0100 |
>> Please, tell me that this is 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.
>>
>> Yours truly puzzled,
>
>
> I don't know why you find it so puzzling. You can't take or drop something
> that "isn't there" (you can't take a car or cdr from an empty list as well,
> although e.g. in the language of "The Little Prover" (car '()) and (cdr '())
> both evaluate to '() to assure their totality). If you need, you can define
> your own variants that take/drop at most n elements of list.
Not only that you "can", it's also IMHO a fool-proof implementation
and I can't see any reason why it should behave differently.
[Prev in Thread] | Current Thread | [Next in Thread] |