Changeset 40115 in project


Ignore:
Timestamp:
05/19/21 09:26:37 (4 weeks ago)
Author:
Idiomdrottning
Message:

like?, is?, and for-each-line

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/brev-separate

    r40114 r40115  
    348348
    349349{{econd}}, similarly, is an "empty is falsy" version of {{acond}}.
     350
     351
     352==== like?
     353{{like?}} is a unary curried version of {{equal?}}
     354
     355
     356==== is?
     357{{is?}} is a unary curried version of {{eq?}}
     358
     359
     360=== Doing stuff
     361
     362==== for-each-line
     363 (for-each-line filename body ...)
     364
     365{{body}} is called for its sideeffects once per line of text in
     366{{filename}} with the variable {{line}} anaphorically bound to that line.
     367
     368For example:
     369
     370 (for-each-line "/tmp/foo" (print line))
     371
    350372
    351373== Author
Note: See TracChangeset for help on using the changeset viewer.