Module

Data.List.Infinite

Package
purescript-infinite-lists
Repository
Thimoteus/purescript-infinite-lists

#Step Source

data Step a

Constructors

Instances

#List Source

newtype List a

Constructors

Instances

#duplicate Source

duplicate :: forall a. List a -> List (List a)

#runList Source

runList :: forall a. List a -> Lazy (Step a)

#step Source

step :: forall a. List a -> Step a

#fromStep Source

fromStep :: forall a. Step a -> List a

#index Source

index :: forall a. List a -> Int -> a

#(!!) Source

Operator alias for Data.List.Infinite.index (left-associative / precedence 8)

#cons Source

cons :: forall a. a -> List a -> List a

#(:) Source

Operator alias for Data.List.Infinite.cons (right-associative / precedence 6)

#insertBy Source

insertBy :: forall a. (a -> a -> Ordering) -> a -> List a -> List a

#insert Source

insert :: forall a. Ord a => a -> List a -> List a

#iterate Source

iterate :: forall a. (a -> a) -> a -> List a

#repeat Source

repeat :: forall a. a -> List a

#uncons Source

uncons :: forall a. List a -> { head :: a, tail :: List a }

#head Source

head :: forall a. List a -> a

#tail Source

tail :: forall a. List a -> List a

#filter Source

filter :: forall a. (a -> Boolean) -> List a -> List a

#insertAt Source

insertAt :: forall a. Int -> a -> List a -> List a

#deleteAt Source

deleteAt :: forall a. Int -> List a -> List a

#updateAt Source

updateAt :: forall a. Int -> a -> List a -> List a

#alterAt Source

alterAt :: forall a. Int -> (a -> Maybe a) -> List a -> List a

#modifyAt Source

modifyAt :: forall a. Int -> (a -> a) -> List a -> List a

#merge Source

merge :: forall a. List a -> List a -> List a

#drop Source

drop :: forall a. Int -> List a -> List a

#dropWhile Source

dropWhile :: forall a. (a -> Boolean) -> List a -> List a

#deleteBy Source

deleteBy :: forall a. (a -> a -> Boolean) -> a -> List a -> List a

#delete Source

delete :: forall a. Eq a => a -> List a -> List a

#zipWith Source

zipWith :: forall a b c. (a -> b -> c) -> List a -> List b -> List c

#zip Source

zip :: forall a b. List a -> List b -> List (Tuple a b)

#unfold Source

unfold :: forall s a. s -> (s -> Tuple a s) -> List a