Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/lasso9
|
||||
|
||||
local(
|
||||
path1 = '/home/user1/tmp/coverage/test' -> split('/'),
|
||||
path2 = '/home/user1/tmp/covert/operator' -> split('/'),
|
||||
path3 = '/home/user1/tmp/coven/members' -> split('/')
|
||||
)
|
||||
|
||||
define commonpath(...) => {
|
||||
local(shared = #rest -> get(1))
|
||||
loop(#rest -> size - 1) => {
|
||||
#shared = #shared -> intersection(#rest -> get(loop_count + 1))
|
||||
}
|
||||
return #shared -> join('/')
|
||||
}
|
||||
|
||||
stdoutnl(commonpath(#path1, #path2, #path3))
|
||||
Loading…
Add table
Add a link
Reference in a new issue