Module
Data.Record.Builder
- Package
- purescript-record
- Repository
- purescript/purescript-record
#Builder Source
newtype Builder a b
A Builder
can be used to build
a record by incrementally adding
fields in-place, instead of using insert
and repeatedly generating new
immutable records which need to be garbage collected.
The Category
instance for Builder
can be used to compose builders.
For example:
build (insert x 42 >>> insert y "testing") {} :: { x :: Int, y :: String }