Permalink
Browse files

some missing doc on map index

  • Loading branch information...
lichtkind committed Oct 8, 2018
1 parent 4d6fca9 commit 417453f66b33278d7cb9dafcce61f8cea1682af6
Showing with 4 additions and 4 deletions.
  1. +2 −2 README.md
  2. +2 −2 lib/Math/Matrix.pod
View
@@ -777,7 +777,7 @@ Asks if the matrix contains a value equal to the only argument of the method. If
Runs a code block (only required argument) for every cell of the matrix. Arguments to the anonymous block are current row and column index. The results for a new matrix.
say Math::Matrix.new([[1,2],[3,4]]).map: {$^m == $^n ?? 1 !! 0 } :
say Math::Matrix.new([[1,2],[3,4]]).map-index: {$^m == $^n ?? 1 !! 0 } :
1 0
0 1
@@ -786,7 +786,7 @@ Runs a code block (only required argument) for every cell of the matrix. Argumen
Runs a code block (only required argument) for every cell of the matrix. Arguments to the anonymous block are current row and column index and the content of the cell. The results for a new matrix.
say Math::Matrix.new([[1,2],[3,4]]).map: {$^m == $^n ?? $^value !! 0 } :
say Math::Matrix.new([[1,2],[3,4]]).map-with-index: {$^m == $^n ?? $^value !! 0 } :
1 0
0 4
View
@@ -864,7 +864,7 @@ Runs a code block (only required argument) for every cell of the matrix.
Arguments to the anonymous block are current row and column index.
The results for a new matrix.
say Math::Matrix.new([[1,2],[3,4]]).map: {$^m == $^n ?? 1 !! 0 } :
say Math::Matrix.new([[1,2],[3,4]]).map-index: {$^m == $^n ?? 1 !! 0 } :
1 0
0 1
@@ -875,7 +875,7 @@ Runs a code block (only required argument) for every cell of the matrix.
Arguments to the anonymous block are current row and column index
and the content of the cell. The results for a new matrix.
say Math::Matrix.new([[1,2],[3,4]]).map: {$^m == $^n ?? $^value !! 0 } :
say Math::Matrix.new([[1,2],[3,4]]).map-with-index: {$^m == $^n ?? $^value !! 0 } :
1 0
0 4

0 comments on commit 417453f

Please sign in to comment.