Man or boy test: Difference between revisions
Content added Content deleted
(Add Jsish) |
(Added Dyalect programming language) |
||
Line 1,219: | Line 1,219: | ||
!. a 10 x 1 x -1 x -1 x 1 x 0</lang> |
!. a 10 x 1 x -1 x -1 x 1 x 0</lang> |
||
=={{header|Dyalect}}== |
|||
<lang Dyalect>func C(i) { |
|||
() => i |
|||
} |
|||
func A(k, x1, x2, x3, x4, x5) { |
|||
var b |
|||
b = () => { |
|||
k -= 1 |
|||
A(k, b, x1, x2, x3, x4) |
|||
} |
|||
if k <= 0 { |
|||
x4() + x5() |
|||
} else { |
|||
b() |
|||
} |
|||
} |
|||
print(A(12, C(1), C(-1), C(-1), C(1), C(0)))</lang> |
|||
{{out}} |
|||
<pre>-291</pre> |
|||
=={{header|Dylan}}== |
=={{header|Dylan}}== |