Sha256: 9d2f0f71e85f85b359e5f82f46a7284ca9abfc6518cef3cf328cda3d869b925f

Contents?: true

Size: 346 Bytes

Versions: 3

Compression:

Stored size: 346 Bytes

Contents

require "iolite"

# Use require
# define Array#to_proc
require "iolite/adaptored/array"

include Iolite::Placeholders

p [1, arg1, 2, arg1 + arg2].to_proc.call(1, 2)
# => [1, 1, 2, 3]

p [1, 2, 3].map &[arg1, arg1 ,arg1]
# => [[1, 1, 1], [2, 2, 2], [3, 3, 3]]

p [1, 2, 3].map &((1..3).map &arg1.to_l + 3)
# => [[4, 4, 4], [5, 5, 5], [6, 6, 6]]

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
iolite-0.0.3 example/array.rb
iolite-0.0.2 example/array.rb
iolite-0.0.1 example/array.rb