RosettaCodeData/Task/Named-parameters/PicoLisp/named-parameters-2.l
Ingy döt Net b83f433714 tasks a-s
2013-04-10 23:57:08 -07:00

7 lines
248 B
Text

(de foo @
(bind (next) # Save all symbols in first argument
(mapc set (arg) (rest)) # then bind them to remaining arguments
(println 'Bar 'is Bar)
(println 'Mumble 'is Mumble) ) )
(foo '(Bar Mumble) 123 "def")