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

19 commits

Author SHA1 Message Date
Mikael Djurfeldt
c614a00b8c * srfi-1.scm (filter, filter!): Removed. (Now implemented in the core.)
* goops/util.scm (filter): Removed.  (Now supplied by core.)

* list.c, list.h (scm_filter, scm_filter_x): New functions.

* debugger/command-loop.scm: Prefix all commands imported from
(ice-9 debugger command-loop) with debugger:.

* boot-9.scm (resolve-interface): Process #:hide; Name custom interfaces
appropriately.
(module-use!, module-use-interfaces!): Remove existing interfaces
on the use-list based on module name rather than interface
identity so that custom interfaces truly replaces their previous
version.
2003-03-11 19:58:14 +00:00
Mikael Djurfeldt
f595ccfefc * srfi-1.scm (iota map for-each map-in-order list-index member
delete delete! assoc): Marked as replacements.

* goops.scm (define-extended-generics): New syntax.
(<class> <operator-class> <entity-class> <entity>): Marked as
replacements.

* boot-9.scm (module-override!, make-mutable-parameter,
lookup-duplicates-handlers, default-module-duplicates-handler):
New functions.
(process-duplicates): Don't call duplicates handlers for duplicate
bindings of the same variable.
(process-define-module): Process #:replace.
(compile-interface-spec, resolve-interface): Process #:prefix.

* format.scm (format): Marked as replacement.

* threads.scm (future, future-ref): Marked as replacements.
2003-03-10 23:18:05 +00:00
Mikael Djurfeldt
7692d26b31 * srfi-1.scm: Load srfi-1 extension.
(map, map-in-order, for-each, member, assoc): Replaced by
primitives in srfi-1.c.
(map1): Defined as `map'.
2002-12-01 13:56:11 +00:00
Mikael Djurfeldt
ee6aac9733 * srfi-1.scm: Load srfi-1 extension.
(map, map-in-order, for-each, member): Replaced by primitives in
srfi-1.c.

* Makefile.am: Added rules for srfi-1.c.

* srfi-1.c, srfi-1.h: New files.
2002-12-01 13:10:51 +00:00
Thien-Thi Nguyen
6be07c5278 Update copyright.
Point to manual in commentary; nfc.
2002-03-28 01:39:12 +00:00
Thien-Thi Nguyen
e4cb30dff3 (count1, take-while): Rewrite to be tail-recursive.
Thanks to Panagiotis Vossos.
2002-01-21 21:31:34 +00:00
Thien-Thi Nguyen
513a3bd72d (map1): Rewrite to be tail-recursive.
Thanks to Panagiotis Vossos for the bug report.
2002-01-21 01:11:35 +00:00
Gary Houston
6ddd941279 2001-09-12 Gary Houston <ghouston@arglist.com>
* srfi-1.scm (filter): change "caller" to "filter" in check-arg-type.
2001-09-12 19:15:33 +00:00
Dirk Herrmann
8c494e9973 * Removed lots of deprecated stuff. 2001-08-31 14:42:31 +00:00
Gary Houston
5753f02f67 * srfi-1.scm (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): check for proper list, to avoid infinite recursion on
	a circular list.
2001-08-05 10:12:37 +00:00
Gary Houston
848458d990 * srfi-1.scm (filter): replaced with a tail-recursive version.
(remove): implement using filter, to make it tail-recursive.
2001-08-04 18:37:08 +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