Changeset 33706 in project


Ignore:
Timestamp:
10/10/16 14:56:22 (3 years ago)
Author:
juergen
Message:

holes 1.2 docu updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/holes

    r33697 r33706  
    3131==== ->proc
    3232
    33 <macro>(->proc xpr)</macro>
     33<macro>(->proc code)</macro>
    3434
    35 extracts the holes out of the argument expression, removes duplicates,
    36 and considers the resulting list as the argument list of a procedure,
    37 with xpr as body.
     35extracts the holes out of the argument expression, code, sorts them
     36numerically while removing dups and considers the resulting list as the
     37argument list of a procedure, with code as body.
    3838
    3939This macro can be called with sharp-read-syntax ## as well. Note, that
     
    7070(##(list !! !1! 2 (vector !!)) 1 2)
    7171   ; -> '(1 2 2 #(1)))
     72(##(cons !2! !1!) 1 2) ; -> '(2 . 1)
     73(##(list (cons !2! !1!) (cons !1! !2!)) 1 2)
     74   ; -> '((2 . 1) (1 . 2))
    7275</enscript>
    7376
     
    7881== Last update
    7982
    80 Oct 04, 2016
     83Oct 10, 2016
    8184
    8285== Author
     
    116119
    117120== Version History
     121; 1.2 : holes now numerically sorted
    118122; 1.1 : bug with adjacent holes fixed, regexes replaced
    119123; 1.0 : initial import
Note: See TracChangeset for help on using the changeset viewer.