This is the mail archive of the
cgen@sourceware.org
mailing list for the CGEN project.
.find -> .filter?
- From: Doug Evans <dje at sebabeach dot org>
- To: cgen at sourceware dot org
- Date: Tue, 1 Sep 2009 10:12:52 -0700
- Subject: .find -> .filter?
I see r6rs has find, filter, partition
where find returns the first match,
filter returns all matches,
and partition returns those that match and those that don't match.
[Partition uses the multiple-return-values feature.
I'm not suggesting we use that here.]
I think the thing to do is follow suit and rename .find to .filter.
I like consistent naming.
[Internally I'd also rename utils.scm's find-first and find,
but that's an internal detail.]