procedure
( array-ref arrjs)→A
js:In-Indexes
procedure
( array-set! arrjsvalue)→Void
js:In-Indexesvalue:A
procedure
( array-indexes-ref arridxs)→(Array A)
- : #(struct:Array
(Indexes Index (Boxof Boolean) (-> Void) (-> Indexes Positive-Byte))
#<syntax:build/user/8.18/pkgs/math-lib/math/private/array/typed-array-struct.rkt:56:13 prop:equal+hash>
#<syntax:build/user/8.18/pkgs/math-lib/math/private/array/typed-array-struct.rkt:55:13 prop:custom-write>
#<syntax:build/user/8.18/pkgs/math-lib/math/private/array/typed-array-struct.rkt:54:13 prop:custom-print-quotable>)
(array #[1 20])
- : #(struct:Array
(Indexes Index (Boxof Boolean) (-> Void) (-> Indexes Positive-Byte))
#<syntax:build/user/8.18/pkgs/math-lib/math/private/array/typed-array-struct.rkt:56:13 prop:equal+hash>
#<syntax:build/user/8.18/pkgs/math-lib/math/private/array/typed-array-struct.rkt:55:13 prop:custom-write>
#<syntax:build/user/8.18/pkgs/math-lib/math/private/array/typed-array-struct.rkt:54:13 prop:custom-print-quotable>)
(array #[1 20])
procedure
( array-indexes-set! arridxsvals)→Void
> arr- : #(struct:Mutable-Array
(Indexes
Index
(Boxof Boolean)
(-> Void)
(-> Indexes Integer)
(-> Indexes Integer Void)
(Vectorof Integer))
#<syntax:build/user/8.18/pkgs/math-lib/math/private/array/typed-mutable-array.rkt:14:13 prop:custom-write>)
(mutable-array #[#[-1 2] #[10 -1]])
procedure
( array-slice-ref arrspecs)→(Array A)
procedure
( array-slice-set! arrspecsvals)→Void
> arr- : #(struct:Mutable-Array
(Indexes
Index
(Boxof Boolean)
(-> Void)
(-> Indexes Integer)
(-> Indexes Integer Void)
(Vectorof Integer))
#<syntax:build/user/8.18/pkgs/math-lib/math/private/array/typed-mutable-array.rkt:14:13 prop:custom-write>)
(mutable-array
#[#[0 1 2 3 4]
#[1 1 1 1 1]
#[0 1 2 3 4]
#[1 1 1 1 1]
#[0 1 2 3 4]])
> arr- : #(struct:Mutable-Array
(Indexes
Index
(Boxof Boolean)
(-> Void)
(-> Indexes Integer)
(-> Indexes Integer Void)
(Vectorof Integer))
#<syntax:build/user/8.18/pkgs/math-lib/math/private/array/typed-mutable-array.rkt:14:13 prop:custom-write>)
(mutable-array
#[#[0 -1 2 -3 4]
#[1 -1 1 -1 1]
#[0 -1 2 -3 4]
#[1 -1 1 -1 1]
#[0 -1 2 -3 4]])
syntax
A (Sequenceof Integer ) slice specification causes array-slice-ref to pick rows from an axis. An Integer slice specification causes array-slice-ref to remove an axis by replacing it with one of its rows.
See Slicing for an extended example.
syntax
procedure
( slice-start s)→(U #fFixnum )
s:Sliceprocedure
( slice-step s)→Fixnum
s:Slice
array-slice-ref interprets a Slice like an in-range sequence object. When start or end is #f, it is interpreted as an axis-length-dependent endpoint.
This is used internally by array-slice-ref to interpret a Slice object as a sequence of indexes.
syntax
value
procedure
( slice-dots? v)→Boolean
v:Any
syntax
procedure
( ::new [dk])→Slice-New-Axis
procedure
( slice-new-axis? v)→Boolean
v:Anyprocedure