KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
defvariant
★ 21
Open GitHub ↗
Variants for Common Lisp
Download README (.md)
Explore Similar Repositories
AnimationManager
:
Animation Manager for XAML
ros-testing-tutorial
:
ROS files and exercises for the ros-tdd seminar I gave to the Social Robots Group on march 2014
diy-dogecoin-digger
:
Do-It-Yourself Dogecoin Digger (DDD): Start digging in your own back yard!
purescript-refs
:
Mutable value references
ExpandSync
:
A simple engine to sync aText and TextExpander iOS
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
defvariant
?
Download (.md)
defvariant ========== Variants for Common Lisp (for ML nostalgics ?) ```lisp (defpackage :try-defvariant (:use :cl :defvariant)) (in-package :try-defvariant) (defvariant btree (leaf) (node val left right)) ``` `=> MATCH-BTREE` ```lisp (let ((my-tree (make-btree-node :val 42 :left (make-btree-leaf) :right (make-btree-leaf)))) (match-btree my-tree (leaf _ "leaf !") (node (v _ _) v))) ``` `=> 42` ---- See. `defvariant.md` for the whole story.