Flatten a list: Difference between revisions
Content added Content deleted
(→Insitux: implementation) |
|||
Line 2,120: | Line 2,120: | ||
return |
return |
||
end</syntaxhighlight> |
end</syntaxhighlight> |
||
=={{header|Insitux}}== |
|||
Insitux has a built-in flatten function. |
|||
<syntaxhighlight lang="insitux"> |
|||
(flatten [[1] 2 [[3 4] 5] [[[]]] [[[6]]] 7 8 []]) |
|||
</syntaxhighlight> |
|||
{{out}} |
|||
<pre> |
|||
[1 2 3 4 5 6 7 8] |
|||
</pre> |
|||
=={{header|Ioke}}== |
=={{header|Ioke}}== |