motion-parallel provides parallel iterations for RubyMotion
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
lib
resources
spec
.gitignore
Gemfile
Gemfile.lock
LICENSE.txt
README.md
Rakefile
motion-parallel.gemspec

README.md

motion-parallel

motion-parallel provides 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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request