Changeset 29500 in project


Ignore:
Timestamp:
08/04/13 16:14:58 (6 years ago)
Author:
juergen
Message:

in bindings renamed bind? to bindable?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/bindings

    r29497 r29500  
    2727(bindings bind bind-case bind-case-lambda bind-case-lambda* bind-define
    2828 bind-lambda bind-lambda* bind-let bind-let* bind-letrec bind*
    29  bind? bind-set! bindrec generic-null-car-cdr! generic-null? generic-car
     29 bindable? bind-set! bindrec generic-null-car-cdr! generic-null? generic-car
    3030 generic-cdr)
    3131</enscript>
     
    5252binds pattern variables of pat to subexpressions of seq and executes xpr . xprs in this context
    5353
    54 ==== bind?
    55 
    56 <syntax>(bind? pat (where . fenders) .. ....)</syntax>
     54==== bindable?
     55
     56<syntax>(bindable? pat (where . fenders) .. ....)</syntax>
    5757
    5858returns a predicate which checks, if its only sequence argument matches
     
    298298; -> #f
    299299
    300 ((bind? ()) '()) ; -> #t
    301 
    302 ((bind? (a (b C) . d)) '(1 (2 3) . 4)) ; -> #t
    303 
    304 ((bind? (a (b C) . d)) '(1 #(2 3) 4 5)) ; -> #t
    305 
    306 ((bind? (a (b . C) . d)) '(1 (2 3) 4)) ; -> #t
    307 
    308 ((bind? (a (b . C) . d)) '#(1 2 3 4 5)) ; -> #f
    309 
    310 ((bind? (a (b C) d)) '(1 (2 3) 4 5)) ; -> #f
    311 
    312 ((bind? (a b) (where (even? a)) (a b)) '#(1 2)) ; -> #t
     300((bindable? ()) '()) ; -> #t
     301
     302((bindable? (a (b C) . d)) '(1 (2 3) . 4)) ; -> #t
     303
     304((bindable? (a (b C) . d)) '(1 #(2 3) 4 5)) ; -> #t
     305
     306((bindable? (a (b . C) . d)) '(1 (2 3) 4)) ; -> #t
     307
     308((bindable? (a (b . C) . d)) '#(1 2 3 4 5)) ; -> #f
     309
     310((bindable? (a (b C) d)) '(1 (2 3) 4 5)) ; -> #f
     311
     312((bindable? (a b) (where (even? a)) (a b)) '#(1 2)) ; -> #t
    313313
    314314(bind-case '#(1 2)
     
    414414== Version History
    415415
     416; 2.2 : renamed bind? bindable?
     417
    416418; 2.1 : generics (and hence bind and friends) now accept records, bind/cc added
    417419
    418 ; 2.0 : bind-matches? and bind-loop changed to bind? and bind*, where clauses and generic functions added, syms->vars removed
     420; 2.0 : bind-matches? and bind-loop changed to bindable? and bind*, where clauses and generic functions added, syms->vars removed
    419421
    420422; 1.0 : all binding macros can now destructure arbitrary nested sequences, i.e mixtures of lists, pseudo-lists, vectors and strings; dependency on contracts removed.
Note: See TracChangeset for help on using the changeset viewer.