Module

Neon.Class.HasReduce

Package
purescript-neon
Repository
tfausak/purescript-neon

#HasReduce Source

class HasReduce a  where

Represents types that can be reduced to a single value. This is also known as a fold.

["wo", "rl", "d!"] :reduce (\ a e -> a + e) "hello" -- "helloworld!"

Members

  • reduce :: forall c b. (c -> b -> c) -> c -> a b -> c

Instances