Results for: "partition"

No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available

alias $foo $bar ^^^^^^^^^^^^^^^

foo { |; bar| }

^^^

foo.bar += baz ^^^^^^^^^^^^^^^

foo.bar &&= baz ^^^^^^^^^^^^^^^

foo.bar ||= baz ^^^^^^^^^^^^^^^

@@foo ^^^^^

$foo ^^^^

foo += baz ^^^^^^^^^^^^^^^

foo &&= baz ^^^^^^^^^^^^^^^^

foo ||= baz ^^^^^^^^^^^^^^^^

@foo ^^^^

foo ^^^

No documentation available

Returns a new lazy enumerator with the concatenated results of running block once for every element in the lazy enumerator.

["foo", "bar"].lazy.flat_map {|i| i.each_char.lazy}.force
#=> ["f", "o", "o", "b", "a", "r"]

A value x returned by block is decomposed if either of the following conditions is true:

Otherwise, x is contained as-is in the return value.

[{a:1}, {b:2}].lazy.flat_map {|i| i}.force
#=> [{:a=>1}, {:b=>2}]

If a block is given, returns a lazy enumerator that will iterate over the given block for each element with an index, which starts from offset, and returns a lazy enumerator that yields the same values (without the index).

If a block is not given, returns a new lazy enumerator that includes the index, starting from offset.

offset

the starting index to use

See Enumerator#with_index.

No documentation available
No documentation available
No documentation available
Search took: 6ms  ·  Total Results: 4702