matrix-map-index ( matrix quot: ( ... elt i j -- ... elt' ) -- matrix' )


Vocabulary
math.matrices

Inputs
matrixan object
quota quotation with stack effect ( ... elt i j -- ... elt' )


Outputs
matrix'an object


Definition


: matrix-map-index
( matrix quot: ( ... elt i j -- ... elt' ) -- matrix' )
[ [ swap ] ] dip compose [ curry map-index ] curry map-index
; inline