Changes between Version 4 and Version 5 of CombinatorsCowan


Ignore:
Timestamp:
12/07/12 00:30:13 (5 years ago)
Author:
cowan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CombinatorsCowan

    v4 v5  
    11This proposal contains various procedures that return procedures and a few others, drawn from Chicken.  Common Lisp has a few of them too. 
    22 
    3 `(always `''obj''`)` 
    4  
    5 Ignores its arguments and always returns `#t`.  
    6  
    7 `(never `''obj''`)` 
    8  
    9 Ignores its arguments and always returns `#f`. 
     3== Combinators == 
    104 
    115`(constantly `''obj'' ...`)` 
     
    4135Returns a two-argument procedure that calls ''proc'', a two-argument procedure, with its arguments swapped. 
    4236 
    43 `(identity `''obj''`)` 
    44  
    45 Returns ''obj''. 
    46  
    4737`(all-of? `''predicate''`)` 
    4838 
     
    5646 
    5747Returns a procedure that applies ''mapper'' to each of its arguments, and then applies ''reducer'' to all the results and returns what it returns. 
     48 
     49== Other procedures == 
     50 
     51`(always `''obj''`)` 
     52 
     53Ignores its arguments and always returns `#t`.  
     54 
     55`(never `''obj''`)` 
     56 
     57Ignores its arguments and always returns `#f`. 
     58 
     59`(identity `''obj''`)` 
     60 
     61Returns ''obj''. 
     62