guile-devel
[Top][All Lists]
Advanced

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

Re: srfi-1 map, for-each, member, assoc


From: Martin Grabmueller
Subject: Re: srfi-1 map, for-each, member, assoc
Date: Mon, 02 Jul 2001 11:09:07 +0200

> From: Gary Houston <address@hidden>
> Date: 2 Jul 2001 07:38:19 -0000
> 
> srfi-1 extends a few R5RS procedures:
> 
> map for-each (Extended to take lists of unequal length)

Correct.

> member assoc (Extended to take an optional comparison procedure.)

Hum?  (srfi srfi-1) does it already:

guile> (use-modules (srfi srfi-1))
guile> (member "foo" '("bar" "frob" "foo" "braz") string=?)
("foo" "braz")
guile> (assoc "foo" '(("la" . "lu") ("foo" . "bar") ("braz" . "frob")) string=?)
("foo" . "bar")

Or am I missing something?

> Would it be OK for the (srfi srfi-1) module to export these?

With `would it be OK', do you mean you want to do this, or do you want
me to implement it?  I am happy with both.

Best regards,
  'martin



reply via email to

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