https://github.com/alexknauth/mutable-match-lambda
extendable mutable functions
https://github.com/alexknauth/mutable-match-lambda
Last synced: 24 days ago
JSON representation
extendable mutable functions
- Host: GitHub
- URL: https://github.com/alexknauth/mutable-match-lambda
- Owner: AlexKnauth
- License: mit
- Created: 2015-03-30T10:27:43.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-10-01T01:28:51.000Z (almost 5 years ago)
- Last Synced: 2025-03-25T12:16:57.942Z (4 months ago)
- Language: Racket
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
mutable-match-lambda [](https://travis-ci.org/AlexKnauth/mutable-match-lambda)
===extendable mutable functions
documentation: http://pkg-build.racket-lang.org/doc/mutable-match-lambda/index.html
```racket
> (define my+ (mutable-match-lambda))
> 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)
```