Creating an Array: Difference between revisions

updated FunL
(added FunL)
(updated FunL)
Line 191:
println( array([1, 2, 3, 4, 5]) ) // one dimensional 5 element array (initialized from a list)
println( array(((1, 2), (3, 4), (5, 6))) ) // two dimensional 3 by 2 element array (initialized from a tuple containing row tuples)</lang>
 
{{out}}
 
<pre>
ArraySeq(null, null, null, null, null)
ArraySeq(ArraySeq(null, null), ArraySeq(null, null), ArraySeq(null, null))
ArraySeq(1, 2, 3, 4, 5)
ArraySeq(ArraySeq(1, 2), ArraySeq(3, 4), ArraySeq(5, 6))
</pre>
 
==[[Haskell]]==
Anonymous user