RosettaCodeData/Task/Find-common-directory-path/J/find-common-directory-path-2.j
2023-07-01 13:44:08 -04:00

5 lines
203 B
Text

paths=: '/home/user1/tmp/coverage/test';'/home/user1/tmp/covert/operator';'/home/user1/tmp/coven/members'
getCommonPrefix >paths
/home/user1/tmp/cove
'/' getCommonDirPath paths
/home/user1/tmp/