Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
PlutusTx.Data.List
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.
Constructors
List (BuiltinList BuiltinData) |
Instances
Lift DefaultUni (List a) 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 Methods fromBuiltinData :: BuiltinData -> Maybe (List a) Source # | |
ToData (List a) Source # | |
Defined in PlutusTx.Data.List Methods toBuiltinData :: List a -> BuiltinData Source # | |
UnsafeFromData (List a) Source # | |
Defined in PlutusTx.Data.List Methods unsafeFromBuiltinData :: BuiltinData -> List a Source # | |
Monoid (List a) Source # | |
Defined in PlutusTx.Data.List | |
Semigroup (List a) Source # | |
(UnsafeFromData a, Pretty a) => Pretty (List a) Source # | |
Defined in PlutusTx.Data.List | |
Typeable DefaultUni List Source # | |
findIndices :: UnsafeFromData a => (a -> Bool) -> List a -> List Integer Source #
toSOP :: UnsafeFromData a => List a -> [a] Source #