Changeset 34654 in project


Ignore:
Timestamp:
09/29/17 07:00:47 (3 weeks ago)
Author:
kon
Message:

rel 1.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/list-utils

    r34651 r34654  
    115115<macro>(alist-delete-first KEY ALIST [TEST?])</macro>
    116116
    117 Returns {{(alist-delete-for-count KEY ALIST [TEST?] 1)}}.
     117Returns {{(alist-delete-with-count KEY ALIST [TEST?] 1)}}.
    118118
    119119=== alist-delete-first!
     
    182182<procedure>(alist-delete-for-count! KEY ALIST [TEST? [COUNT]])</procedure>
    183183
    184 Destructive version of {{alist-delete-for-count}}.
     184Destructive version of {{alist-delete-with-count}}.
     185
     186{{alist-delete-first}} and {{alist-delete-first!}} are also available as
     187procedures.
     188
     189=== alist-delete-with-count
     190
     191<procedure>(alist-delete-with-count KEY ALIST [[COUNT] TEST?])</procedure>
     192
     193Deletes the first {{COUNT}} associations from alist {{ALIST}} with the given
     194key {{KEY}}, using key-comparison procedure {{TEST?}}. The dynamic order in
     195which the various applications of equality are made is from the alist head to
     196the tail.
     197
     198Returns a new alist. The alist is not disordered - elements that appear in the
     199result alist occur in the same order as they occur in the argument alist.
     200
     201The equality procedure is used to compare the element keys, {{key[i: 0 <= i <
     202(length ALIST)}}', of the alist's entries to the key parameter in this way:
     203{{(TEST? KEY key[i])}}.
     204
     205{{COUNT}} defaults to essentially, infinity, and {{EQUALITY?}} defaults to
     206{{eqv?}}.
     207
     208=== alist-delete-with-count!
     209
     210<procedure>(alist-delete-with-count! KEY ALIST [[COUNT] TEST?])</procedure>
     211
     212Destructive version of {{alist-delete-with-count}}.
    185213
    186214{{alist-delete-first}} and {{alist-delete-first!}} are also available as
     
    281309== Version history
    282310
     311; 1.3.0 : Add {{alist-delete-with-count}} & {{alist-delete-with-count!}}.
    283312; 1.2.0 : Add {{alist-delete-for-count}} & {{alist-delete-for-count!}}.
    284313; 1.1.2 : .
Note: See TracChangeset for help on using the changeset viewer.