childprocess
https://github.com/enkessler/childprocess
Ruby
Cross-platform Ruby library for managing child processes.
Matrix#index
:call-seq:
index(value, selector = :all) -> [row, column]
index(selector = :all){ block } -> [row, column]
index(selector = :all) -> an_enumerator
The index method is specialized to return the index as [row, column]
It also accepts an optional +selector+ argument, see #each for details.
Matrix[ [1,2], [3,4] ].index(&:even?) # => [0, 1]
Matrix[ [1,1], [1,1] ].index(1, :strict_lower) # => [1, 0]Edit
git clone [email protected]:enkessler/childprocess.git
cd childprocess
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Matrix-index-for-pr
# Commit to gitgit add git commit -m "better docs for Matrix#index"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Matrix-index-for-pr
hub pull-request
# Celebrate!