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
11
Task/Y-combinator/Ceylon/y-combinator-2.ceylon
Normal file
11
Task/Y-combinator/Ceylon/y-combinator-2.ceylon
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
Result(*Args) y2<Result,Args>(
|
||||
Result(*Args)(Result(*Args)) f)
|
||||
given Args satisfies Anything[] {
|
||||
|
||||
function r(Anything w) {
|
||||
assert (is Result(*Args)(Anything) w);
|
||||
return f(flatten((Args args) => w(w)(*args)));
|
||||
}
|
||||
|
||||
return r(r);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue