plutus-tx-1.38.0.0: Libraries for Plutus Tx and its prelude
Safe HaskellSafe-Inferred
LanguageHaskell2010

PlutusTx.Data.List

Synopsis

Documentation

newtype List a Source #

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

Instances details
Lift DefaultUni (List a) Source # 
Instance details

Defined in PlutusTx.Data.List

Methods

liftList a → RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) Source #

Monoid (List a) Source # 
Instance details

Defined in PlutusTx.Data.List

Methods

memptyList a Source #

mappendList a → List a → List a Source #

mconcat ∷ [List a] → List a Source #

Semigroup (List a) Source # 
Instance details

Defined in PlutusTx.Data.List

Methods

(<>)List a → List a → List a Source #

sconcatNonEmpty (List a) → List a Source #

stimesIntegral b ⇒ b → List a → List a Source #

Show (List a) Source # 
Instance details

Defined in PlutusTx.Data.List

Methods

showsPrecIntList a → ShowS Source #

showList a → String Source #

showList ∷ [List a] → ShowS Source #

Eq (List a) Source # 
Instance details

Defined in PlutusTx.Data.List

Methods

(==)List a → List a → Bool Source #

(/=)List a → List a → Bool Source #

Eq (List a) Source # 
Instance details

Defined in PlutusTx.Data.List

Methods

(==)List a → List a → Bool Source #

FromData (List a) Source # 
Instance details

Defined in PlutusTx.Data.List

ToData (List a) Source # 
Instance details

Defined in PlutusTx.Data.List

UnsafeFromData (List a) Source # 
Instance details

Defined in PlutusTx.Data.List

Monoid (List a) Source # 
Instance details

Defined in PlutusTx.Data.List

Methods

memptyList a Source #

Semigroup (List a) Source # 
Instance details

Defined in PlutusTx.Data.List

Methods

(<>)List a → List a → List a Source #

(UnsafeFromData a, Pretty a) ⇒ Pretty (List a) Source # 
Instance details

Defined in PlutusTx.Data.List

Methods

prettyList a → Doc ann Source #

prettyList ∷ [List a] → Doc ann Source #

Typeable DefaultUni List Source # 
Instance details

Defined in PlutusTx.Data.List

appendList a → List a → List a Source #

findUnsafeFromData a ⇒ (a → Bool) → List a → Maybe a Source #

findIndicesUnsafeFromData a ⇒ (a → Bool) → List a → List Integer Source #

filter ∷ (UnsafeFromData a, ToData a) ⇒ (a → Bool) → List a → List a Source #

mapMaybe ∷ (UnsafeFromData a, ToData b) ⇒ (a → Maybe b) → List a → List b Source #

anyUnsafeFromData a ⇒ (a → Bool) → List a → Bool Source #

foldMap ∷ (UnsafeFromData a, Monoid m) ⇒ (a → m) → List a → m Source #

map ∷ (UnsafeFromData a, ToData b) ⇒ (a → b) → List a → List b Source #

mconcat ∷ (Monoid a, UnsafeFromData a) ⇒ List a → a Source #

Plutus Tx version of mconcat.

fromSOPToData a ⇒ [a] → List a Source #

toSOPUnsafeFromData a ⇒ List a → [a] Source #