-
Notifications
You must be signed in to change notification settings - Fork 50
Array of Arrays
brett hartshorn edited this page Jan 21, 2015
·
6 revisions
arr = []int(1,2,3)
[][]T(...)
translates to a variable sized vector of vectors. None
is allowed as a sub-vector because each sub-vector is wrapped by std::shared_ptr
. Array comprehensions can be used in the constructor as sub-vectors.
https://github.com/rusthon/Rusthon/blob/master/regtests/c%2B%2B/array_of_arrays.py
arr = [][]int(
(1,2,3),
(4,5,6,7,8),
None,
(x for x in range(20)),
)
arr = [][]A( ... )
https://github.com/rusthon/Rusthon/blob/master/regtests/c%2B%2B/array_of_arrays_objects.py
TODO