RosettaCodeData/Task/Conditional-structures/Ol/conditional-structures-5.ol

9 lines
239 B
Text
Raw Permalink Normal View History

2020-02-17 23:21:07 -08:00
(case (vector 'selector 1 2 3)
(['case1 x y]
(print "case: case1 " x ", " y))
(['selector x y z]
(print "case: selector " x ", " y ", " z))
2019-09-12 10:33:56 -07:00
(else
2020-02-17 23:21:07 -08:00
(print "case: i don't know")))
; ==> tuple-case: selector 1, 2, 3