Sha256: ec24b966329c1ca42b3bd6426ccd8b8f7678eeaca6fb506a419fe36157df112e

Contents?: true

Size: 272 Bytes

Versions: 11

Compression:

Stored size: 272 Bytes

Contents

# frozen_string_literal: true

module Pipeable
  module Steps
    # Maps over an enumerable, processes each element, and answers a new enumerable.
    class Map < Abstract
      def call(result) = result.fmap { |collection| collection.map(&base_block) }
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pipeable-1.1.0 lib/pipeable/steps/map.rb
pipeable-1.0.0 lib/pipeable/steps/map.rb
pipeable-0.14.0 lib/pipeable/steps/map.rb
pipeable-0.13.0 lib/pipeable/steps/map.rb
pipeable-0.12.0 lib/pipeable/steps/map.rb
pipeable-0.11.0 lib/pipeable/steps/map.rb
pipeable-0.10.0 lib/pipeable/steps/map.rb
pipeable-0.9.1 lib/pipeable/steps/map.rb
pipeable-0.9.0 lib/pipeable/steps/map.rb
pipeable-0.8.0 lib/pipeable/steps/map.rb
pipeable-0.7.0 lib/pipeable/steps/map.rb