RosettaCodeData/Task/Comma-quibbling/PicoLisp/comma-quibbling.l
2015-02-20 09:02:09 -05:00

8 lines
194 B
Text

(for L '([] ["ABC"] ["ABC", "DEF"] ["ABC", "DEF", "G", "H"])
(let H (head -1 L)
(prinl
"{"
(glue ", " H)
(and H " and ")
(last L)
"}" ) ) )