Array Initialization: Difference between revisions

→‎Slate: Covered in other pages
(→‎C++: I think this part is covered. Can someone else check the STL stuff?)
(→‎Slate: Covered in other pages)
Line 159:
Prelude Data.Array> newArr (0,0) (5,5) 0
array ((0,0),(5,5)) [((0,0),0),((0,1),0),((0,2),0),((0,3),0),((0,4),0),((0,5),0),((1,0),0),((1,1),0),((1,2),0),((1,3),0),((1,4),0),((1,5),0),((2,0),0),((2,1),0),((2,2),0),((2,3),0),((2,4),0),((2,5),0),((3,0),0),((3,1),0),((3,2),0),((3,3),0),((3,4),0),((3,5),0),((4,0),0),((4,1),0),((4,2),0),((4,3),0),((4,4),0),((4,5),0),((5,0),0),((5,1),0),((5,2),0),((5,3),0),((5,4),0),((5,5),0)]
</lang>
 
==[[Slate]]==
<lang slate>
{1. 'hello'. $c. 4 factorial} "evaluates each argument and makes an array"
#(1 b 34) "is quoted... array at: 1 will return #b"
</lang>
Anonymous user