Jump to content

Flatten a list: Difference between revisions

→‎Insitux: implementation
(→‎Insitux: implementation)
Line 2,120:
return
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}}==
112

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.