lib/dry/monads/list.rb
# Maps a block over the list. Acts as `Array#map`.
# Note that this method returns an Array instance, not a List
#
# @return [List,Enumerator]
Maps a block over the list. Acts as `Array#map`.
Note that this method returns an Array instance, not a List
Maps a block over the list . Acts as ` Array#map ` . Note that this method returns an Array instance not a List
def map(&block)
        if block
          fmap(block)
        else
          value.map(&block)
        end
      end
def map ( & block ) if block fmap ( block ) else value . map ( & block ) end end
Maps a block over the list.
Maps a block over the list .
None
List,Enumerator
block
<not_specific>