Module

QualifiedDo.OneOfMap

Package
purescript-qualified-do
Repository
artemisSystem/purescript-qualified-do

Accumulate do block entries in an Alt while mapping over them. Example:

import QualifiedDo.OneOfMap as O

-- Equivalent to: oneOfMap f [a, b, c]
O.oneOfMap f O.do
  a
  b
  c

#oneOfMap Source

oneOfMap :: forall f a b s. Convert s (Statements a) => Plus f => (a -> f b) -> s -> f b

Re-exports from QualifiedDo.Statements

#discard Source

discard :: forall s a. Convert s (Statements a) => a -> (Unit -> s) -> Statements a

#bind Source

bind :: forall s a. Convert s (Statements a) => a -> (a -> s) -> Statements a