Changeset 29928 in project


Ignore:
Timestamp:
10/14/13 11:04:41 (8 years ago)
Author:
Peter Danenberg
Message:

combinatorics: Update docs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/combinatorics

    r29699 r29928  
    6565  (case-lambda
    6666    ((f list) (ordered-subset-map f list (length list)))
    67     ((f list k) (ordered-subset-fold cons '() list k))))
     67    ((f list k)
     68     (ordered-subset-fold (lambda (v a) (cons (f v) a)) '() list k))))
    6869</enscript>
    6970==== {{unordered-subset-for-each}}
     
    119120  (case-lambda
    120121    ((f list) (unordered-subset-map f list (length list)))
    121     ((f list k) (unordered-subset-fold cons '() list k))))
     122    ((f list k)
     123     (unordered-subset-fold (lambda (v a) (cons (f v) a)) '() list k))))
    122124</enscript>
    123125=== About this egg
     
    141143; 0.3.1 : Add some tests.
    142144; 0.3.2 : Tests depend on `test'.
     145; 0.3.3 : Actually map the values.
    143146==== Colophon
    144147
Note: See TracChangeset for help on using the changeset viewer.