Module

QualifiedDo.ParOneOfMap

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

Accumulate do block entries in an Alt using its Parallel instance while mapping over them. Example:

import QualifiedDo.ParOneOfMap as PO

-- Equivalent to: parOneOfMap f [a, b, c]
PO.parOneOfMap f PO.do
  a
  b
  c

#parOneOfMap Source

parOneOfMap :: forall m f a b s. Convert s (Statements a) => Parallel f m => Alternative f => (a -> m b) -> s -> m 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