Changeset 40131 in project


Ignore:
Timestamp:
05/24/21 13:33:05 (4 months ago)
Author:
Idiomdrottning
Message:

the arguments can destructure differently, the car pos needs to destructure the same

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/match-generics

    r40129 r40131  
    1 
    21== match-generics
    32[[toc:]]
     
    4443i.e. define the most specifics last and the fallbacks first.
    4544
    46 You can even use nested defines! But if you do, each need to use the same
    47 inner forms. Only the outer-most form is generic.
     45You can even use nested defines! But if you do, each need to use the
     46same car positions. Only the cdr position (a.k.a the arguments) is
     47generic.
    4848
    4949 (define-generic ((frobnicate a) b z) (list a b z))
Note: See TracChangeset for help on using the changeset viewer.