motion-parallel
motion-parallel is parallel iterations for RubyMotion
Installation
Add this line to your application's Gemfile:
gem 'motion-parallel'
And then execute:
$ bundle
Or install it yourself as:
$ gem install motion-parallel
Usage
#p_times
10.p_times do |i|
i ** 2
end
#p_each
['foo', 'bar', 'baz'].p_each do |obj|
"Hello #{obj}"
end
#p_each_index
['foo', 'bar', 'baz'].p_each_index do |index|
puts index
end
#p_each_with_index
['foo', 'bar', 'baz'].p_each_index do |obj, index|
puts "#{obj} at #{index}"
end
#p_map
['foo', 'bar', 'baz'].p_map do |obj|
"Hello #{obj}"
end
Contributing
- Fork it
- 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 new Pull Request