Skip to content

AlexKnauth/mutable-match-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mutable-match-lambda Build Status

extendable mutable functions

documentation: http://pkg-build.racket-lang.org/doc/mutable-match-lambda/index.html

> (define my+ (mutable-match-lambda))
> my+
#<procedure:my+>
> (mutable-match-lambda-add-clause! my+ #:match-lambda* [(list (? number? ns) ...) (apply + ns)])
> (my+ 1 2)
3
> (mutable-match-lambda-add-clause! my+ #:match-lambda* [(list (? vector? vs) ...) (apply vector-map + vs)])
> (my+ #(1 2) #(3 4))
'#(4 6)

About

extendable mutable functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages