RosettaCodeData/Task/Find-common-directory-path/PicoLisp/find-common-directory-path.l

7 lines
184 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
(de commonPath (Lst Chr)
(glue Chr
(make
(apply find
(mapcar '((L) (split (chop L) Chr)) Lst)
'(@ (or (pass <>) (nil (link (next))))) ) ) ) )