Sha256: 750c3d904c0712106d1d9282b028b767be723ad75320cafc4dc5cf9a10f1c2cb

Contents?: true

Size: 412 Bytes

Versions: 1

Compression:

Stored size: 412 Bytes

Contents

require 'nano/integer/times_collect.rb'

class Integer
  alias_method :times_map, :times_collect
end


#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
=begin test

  require 'test/unit'

  class TCInteger < Test::Unit::TestCase

    def test_times_map
      a = 4
      b = a.times_map{ |i| i*2 }
      assert_equal( [0,2,4,6], b )
    end

  end

=end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-0.9.0 lib/nano/integer/times_map.rb