Changeset 31239 in project


Ignore:
Timestamp:
08/18/14 14:37:02 (5 years ago)
Author:
juergen
Message:

typed-lists version 1.2 added list-cons-sorted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/typed-lists

    r31237 r31239  
    276276<procedure>(list-sorted? <? tlst)</procedure>
    277277is a typed list sorted with respect ot <?.
     278
     279==== list-cons-sorted
     280<procedure>(list-cons-sorted <? item tlst)</procedure>
     281inserts an item into a sorted typed list without disturbing order.
    278282
    279283==== list-zip
     
    522526(not (list-sorted? <= (typed-list 2 0 1 4 3)))
    523527(list-sorted? <= (typed-list 0 1 2 3 4))
     528(list-equal?
     529  (list-cons-sorted <= 2 (typed-list 0 1 2 3 4))
     530  (typed-list 0 1 2 2 3 4))
     531(list-equal?
     532  (list-cons-sorted <= 5 (typed-list 0 1 2 3 4))
     533  (typed-list 0 1 2 3 4 5))
    524534(list-every? odd? (typed-list 1 3 5))
    525535(list-every? odd? (typed-list))
     
    659669== Version History
    660670
     671; 1.2 : list-cons-sorted added
    661672; 1.1 : list-bind corrected, list-in? added
    662673; 1.0 : functor implementation
Note: See TracChangeset for help on using the changeset viewer.