plutus-core-1.36.0.0: Language library for Plutus Core
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.RandomAccessList.SkewBinary

Synopsis

Documentation

data RAList a Source #

A strict list of complete binary trees accompanied by their size. The trees appear in >=-size order. Note: this list is strict in its spine, unlike the Prelude list

Constructors

Nil 

Bundled Patterns

pattern Cons ∷ a → RAList a → RAList a 

Instances

Instances details
IsList (RAList a) Source # 
Instance details

Defined in Data.RandomAccessList.SkewBinary

Associated Types

type Item (RAList a) Source #

Methods

fromList ∷ [Item (RAList a)] → RAList a Source #

fromListNInt → [Item (RAList a)] → RAList a Source #

toListRAList a → [Item (RAList a)] Source #

Show a ⇒ Show (RAList a) Source # 
Instance details

Defined in Data.RandomAccessList.SkewBinary

Methods

showsPrecIntRAList a → ShowS Source #

showRAList a → String Source #

showList ∷ [RAList a] → ShowS Source #

Eq a ⇒ Eq (RAList a) Source # 
Instance details

Defined in Data.RandomAccessList.SkewBinary

Methods

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

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

RandomAccessList (RAList a) Source # 
Instance details

Defined in Data.RandomAccessList.SkewBinary

Associated Types

type Element (RAList a) Source #

type Item (RAList a) Source # 
Instance details

Defined in Data.RandomAccessList.SkewBinary

type Item (RAList a) = Item (AsRAL (RAList a))
type Element (RAList a) Source # 
Instance details

Defined in Data.RandomAccessList.SkewBinary

type Element (RAList a) = a

nullRAList a → Bool Source #

unconsRAList a → Maybe (a, RAList a) Source #