1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 20:00:19 +02:00
Commit graph

37 commits

Author SHA1 Message Date
Marius Vollmer
7d81830dd2 The FSF has a new address. 2005-05-23 20:15:36 +00:00
Kevin Ryde
df99edbcbe (lset-union): Rewrite to accumulate result by consing in
the order specified by the SRFI.
2005-04-01 23:48:42 +00:00
Kevin Ryde
62a7e5d4ee (lset-adjoin): Revert change using list' not acc', the
spec is not quite clear, but reference code uses acc, so do that.
2005-02-17 20:52:49 +00:00
Kevin Ryde
04171cd571 (reduce, reduce-right): Don't call f with ridentity, use
it only if lst is empty, per srfi and intended optimization reduce
represents over fold.
2005-02-11 21:38:02 +00:00
Kevin Ryde
b016435abd (list=): Correction to arguments passed to given elt=,
spec is (elt= e[i] e[i+1]) for lists i and i+1, previously the first
arg was always from list 0 not list i.
2005-02-03 23:23:37 +00:00
Kevin Ryde
5ef7de4fa7 (lset-adjoin): Actually use the given `=' procedure.
Test membership only on the given `list', not `acc', as per the spec.
2005-01-28 21:31:30 +00:00
Kevin Ryde
d5fd638ca5 (lset=): Correction to pred call arg order, srfi spec is
(= e[i] e[i+1]), but had some calls the other way around.
2005-01-27 23:12:26 +00:00
Kevin Ryde
cee91599da Add a copyright year. 2005-01-23 20:56:40 +00:00
Kevin Ryde
b048be23f8 (lset=): Allow no list arguments, per srfi spec example. 2005-01-23 20:46:24 +00:00
Kevin Ryde
b34001408f (break): Change to a tail-recursive form. 2004-12-06 00:40:07 +00:00
Kevin Ryde
90ec7c2e93 (span): Change to a tail-recursive form. 2004-12-06 00:36:08 +00:00
Kevin Ryde
f97ef6e462 (alist-delete): Change to a tail-recursive form. 2004-12-06 00:08:38 +00:00
Kevin Ryde
0d3f7e6223 (alist-delete): Correction to equality proc call argument
order, spec is for given KEY param first.
2004-12-05 23:54:43 +00:00
Kevin Ryde
ac5cbc7031 (delete-duplicates): Remove unused extra copy of this routine. 2004-12-05 22:51:12 +00:00
Kevin Ryde
6b0fbcf5e5 (delete-duplicates): Change to a tail-recursive form. 2004-12-05 22:49:54 +00:00
Kevin Ryde
95bc9d7a2e (delete): Change to a tail-recursive form. 2004-12-05 22:33:10 +00:00
Kevin Ryde
49046d53e0 (map!): Change to a tail-recursive form. 2004-12-05 22:26:29 +00:00
Kevin Ryde
f6ff79c415 (partition): Change to a tail-recursive form. 2004-12-05 22:19:38 +00:00
Kevin Ryde
ea9867de6a (map): Change to a tail-recursive form. 2004-12-05 21:59:14 +00:00
Kevin Ryde
bbf21c8a13 (alist-copy): Change to a tail-recursive form. 2004-12-05 21:47:39 +00:00
Kevin Ryde
337e4b2f68 (count): Change to a tail-recursive form. 2004-12-05 00:53:53 +00:00
Kevin Ryde
66f0ff4ab9 (append-map, append-map!): Rewrite as simple "apply append" forms, for
tail recursiveness.
2004-12-04 23:13:16 +00:00
Kevin Ryde
31a0d94d6f (filter-map): Change to a tail-recursive form. 2004-12-04 22:23:16 +00:00
Kevin Ryde
6e98021b0a (list-copy): New function, allowing improper lists as per
SRFI-1 spec, which the core list-copy doesn't do.
2004-04-23 21:22:33 +00:00
Kevin Ryde
344c4c7e21 (delete): Fix predicate arg order to match srfi-1 spec. 2003-05-16 01:04:21 +00:00
Thien-Thi Nguyen
3e676b6f82 Update copyright.
Point to manual in commentary; nfc.
2002-03-28 01:52:37 +00:00
Thien-Thi Nguyen
cd246d3d16 (count1, take-while): Rewrite to be tail-recursive.
Thanks to Panagiotis Vossos.
2002-01-21 21:34:19 +00:00
Thien-Thi Nguyen
5353d6447a (check-arg-type, non-negative-integer?): a couple of new
internal definitions.
(list-tabulate, iota): check for bad arguments that otherwise
give weird output.
(filter): replaced with a tail-recursive version.
(remove): implement using filter, to make it tail-recursive.
2002-01-21 21:01:23 +00:00
Thien-Thi Nguyen
4e5b0337f2 (map1): Rewrite to be tail-recursive.
Thanks to Panagiotis Vossos for the bug report.
2002-01-21 01:19:30 +00:00
Gary Houston
99f59e93b5 * srfi-1.scm (iota, map, for-each, list-index, member, delete,
delete!, assoc): roll back the previous change.  instead place
	dummy definitions in a deprecated block at the beginning as in
	srfi-13.scm.
2001-07-06 21:10:47 +00:00
Gary Houston
6d52dbf2ef (map-in-order): defined and exported, to support lists of unequal
length.
2001-07-03 20:18:39 +00:00
Gary Houston
fc183bc85b * srfi-1.scm (iota, map, for-each, list-index, member, delete,
delete!, assoc): don't export until the new bindings have been
	created.  otherwise "export" thinks they are being re-exported and
	a deprecation warning is produced.
2001-07-03 18:54:43 +00:00
Martin Grabmüller
e800aa0482 * srfi-1.scm (list-tabulate): Do not go into infinite loop for
invalid arguments.  Same fix for several other procedures (do not
	use zero?, use <= 0).
2001-07-03 16:19:23 +00:00
Martin Grabmüller
018adcae03 * srfi-1.scm (list-tabulate): Do not go into infinite loop for
invalid arguments.
2001-07-03 15:35:08 +00:00
Martin Grabmüller
cef248dd61 * srfi-1.scm: Replaced calls to `map' in several procedures to
calls to `map1'.
	(map, for-each): New procedures, extended from R5RS.
2001-07-02 17:50:28 +00:00
Martin Grabmüller
563058efbe * srfi-1.scm (fold, fold-pair): Fixed a buggy call to apply.
(delete-duplicates): Now the first occurrence of an element is
	retained, as required.
	(member, assoc): Fixed wrong order of equality predicate
	application.
2001-06-07 17:54:40 +00:00
Martin Grabmüller
e9680547d3 * README: Update.
* srfi-1.scm: New file.
2001-06-07 04:27:37 +00:00