Sha256: 7b1bf1064a538af638f3dfea92c9d7fc2817158d5ebf81c1897129bc2003b2ca
Contents?: true
Size: 226 Bytes
Versions: 4
Compression:
Stored size: 226 Bytes
Contents
# frozen_string_literal: true module Pipeable module Steps # Wraps Dry Monads `#fmap` method as a step. class Fmap < Abstract def call(result) = result.fmap { |input| base_block.call input } end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pipeable-0.4.0 | lib/pipeable/steps/fmap.rb |
pipeable-0.3.0 | lib/pipeable/steps/fmap.rb |
pipeable-0.2.0 | lib/pipeable/steps/fmap.rb |
pipeable-0.1.0 | lib/pipeable/steps/fmap.rb |