Changes between Version 1 and Version 2 of CombinatorsCowan


Ignore:
Timestamp:
12/07/12 00:23:05 (5 years ago)
Author:
cowan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CombinatorsCowan

    v1 v2  
    44 
    55Ignores its argument and always returns `#t`.  
     6 
     7`(never `''obj''`)` 
     8 
     9Ignores its argument and always returns `#f`. 
    610 
    711`(constantly `''obj'' ...`)` 
     
    1115`(complement `''proc''`)` 
    1216 
    13 Returns a procedure that returns the boolean inverse of ''proc''. 
     17Returns a procedure that returns the boolean inverse of ''proc''.  That is, it returns a true value when ''proc'' returns `#f`, and `#f` otherwise. 
    1418 
    1519`(compose `''proc'' ... `)` 
    1620 
    1721Returns a procedure that represents the composition of its arguments.  Any of the procedures may return multiple values, which are passed as arguments to its successor.  With zero arguments, `(compose)` returns a procedure that is functionally equivalent to `values`. 
     22 
     23`(simple-compose `''proc'' ...`)` 
     24 
     25A variant of `compose` that does not handle multiple-valued procedures. With zero arguments, returns a procedure that is functionally equivalent to `identity`. 
    1826 
    1927`(conjoin `''predicate'' ...`)` 
     
    4149Returns a procedure of one argument that returns `#t` when applied to a list of elements that all satisfy ''predicate'', or `#f` otherwise. 
    4250 
    43 `(never `''obj''`)` 
     51`(map-reduce `''mapper reducer'' ...`)` 
    4452 
    45 Ignores its argument and always returns `#f`. 
    46  
    47 `(o `''proc'' ...`)` 
    48  
    49 A variant of `compose` that does not handle multiple-valued procedures. With zero arguments, returns a procedure that is functionally equivalent to `identity`. 
     53Returns a procedure that applies ''mapper'' to each of its arguments, and then applies ''reducer'' to all the results and returns what it returns.