Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype List a = List (BuiltinList BuiltinData)
- append ∷ List a → List a → List a
- find ∷ UnsafeFromData a ⇒ (a → Bool) → List a → Maybe a
- findIndices ∷ UnsafeFromData a ⇒ (a → Bool) → List a → List Integer
- filter ∷ (UnsafeFromData a, ToData a) ⇒ (a → Bool) → List a → List a
- mapMaybe ∷ (UnsafeFromData a, ToData b) ⇒ (a → Maybe b) → List a → List b
- any ∷ UnsafeFromData a ⇒ (a → Bool) → List a → Bool
- foldMap ∷ (UnsafeFromData a, Monoid m) ⇒ (a → m) → List a → m
- map ∷ (UnsafeFromData a, ToData b) ⇒ (a → b) → List a → List b
- length ∷ List a → Integer
- mconcat ∷ (Monoid a, UnsafeFromData a) ⇒ List a → a
- fromSOP ∷ ToData a ⇒ [a] → List a
- toSOP ∷ UnsafeFromData a ⇒ List a → [a]
Documentation
A list type backed directly by Data
. It is meant to be used whenever fast
encodingdecoding tofrom Data
is needed.
Instances
Lift DefaultUni (List a) Source # | |
Defined in PlutusTx.Data.List lift ∷ List a → RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) Source # | |
Monoid (List a) Source # | |
Semigroup (List a) Source # | |
Show (List a) Source # | |
Eq (List a) Source # | |
Eq (List a) Source # | |
FromData (List a) Source # | |
Defined in PlutusTx.Data.List fromBuiltinData ∷ BuiltinData → Maybe (List a) Source # | |
ToData (List a) Source # | |
Defined in PlutusTx.Data.List toBuiltinData ∷ List a → BuiltinData Source # | |
UnsafeFromData (List a) Source # | |
Defined in PlutusTx.Data.List | |
Monoid (List a) Source # | |
Defined in PlutusTx.Data.List | |
Semigroup (List a) Source # | |
(UnsafeFromData a, Pretty a) ⇒ Pretty (List a) Source # | |
Typeable DefaultUni List Source # | |
Defined in PlutusTx.Data.List typeRep ∷ Proxy List → RTCompile DefaultUni fun (Type TyName DefaultUni ()) Source # |
findIndices ∷ UnsafeFromData a ⇒ (a → Bool) → List a → List Integer Source #
toSOP ∷ UnsafeFromData a ⇒ List a → [a] Source #