Mapp
map
for nested Array
Installation
$ gem install mapp
Usage
require 'mapp'
[[1, 2], [3, 4]].mapp(&:to_s)
#=> [['1', '2'], ['3', '4']]
[
[
[7, [0, 1, 2], 9], [0, 1, 2]
],
[
[1, 2, 3], [4, 5, 6]
]
].mapp(&:to_s)
#=>
# [
# [
# ["7", ["0", "1", "2"], "9"], ["0", "1", "2"]
# ],
# [
# ["1", "2", "3"], ["4", "5", "6"]
# ]
# ]
Contributing
- Fork it ( https://github.com/[my-github-username]/mapp/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request