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

7 lines
184 B
Plaintext

(de commonPath (Lst Chr)
(glue Chr
(make
(apply find
(mapcar '((L) (split (chop L) Chr)) Lst)
'(@ (or (pass <>) (nil (link (next))))) ) ) ) )