guile-devel
[Top][All Lists]
Advanced

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

srfi-1 delete proc arg order


From: Kevin Ryde
Subject: srfi-1 delete proc arg order
Date: Sat, 10 May 2003 13:59:19 +1000
User-agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (gnu/linux)

I noticed the srfi-1 spec says delete and delete! call their predicate
(proc x e[i]), but srfi/srfi-1.scm has it the other way around.

The spec gives an example (delete 5 lst <) to remove all elements
greater than 5 from lst, which doesn't work with the present code.

Unless anyone knows a reason for this difference I'd suggest for head
and stable,

        * srfi-1.scm (delete): Fix predicate arg order to match srfi-1 spec.

        * tests/srfi-1.test (delete, delete!): Test predicate call arg order.

Attachment: srfi-1.scm.delete-args.diff
Description: Text document

Attachment: srfi-1.test.delete-args.diff
Description: Text document


reply via email to

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