plutus-core-1.0.0.1: Language library for Plutus Core
Safe Haskell None
Language Haskell2010

PlutusCore.StdLib.Data.Sum

Description

sum and related functions.

Synopsis

Documentation

sum :: Type TyName uni () Source #

Either as a PLC type.

\(a b :: *) -> all (r :: *). (a -> r) -> (b -> r) -> r

left :: TermLike term TyName Name uni fun => term () Source #

Left as a PLC term.

/\(a b :: *) -> \(x : a) -> /\(r :: *) -> \(f : a -> r) -> (g : b -> r) -> f x

right :: TermLike term TyName Name uni fun => term () Source #

Right as a PLC term.

/\(a b :: *) -> \(y : b) -> /\(r :: *) -> \(f : a -> r) -> (g : b -> r) -> g y