module Enumerable

Monkey-patches to Ruby's built-in `Enumerable` module. @see www.ruby-doc.org/core/Enumerable.html

Public Instance Methods

to_list() click to toggle source

Return a new {Immutable::List} populated with the items in this `Enumerable` object. @return [List]

# File lib/immutable/core_ext/enumerable.rb, line 8
def to_list
  Immutable::List.from_enum(self)
end