Module

Data.Iterable

Package
purescript-iterable
Repository
Risto-Stevcev/purescript-iterable

#Iterable Source

class Iterable iterable value | iterable -> value

The Iterable class corresponds to the Iterable interface in JS. Instances should have a property with the Symbol.iterator as the key. The property should return a function that takes no arguments and returns an Iterator

Instances

#iterator Source

iterator :: forall value iterable. Iterable iterable value => iterable -> Iterator value

Returns the Iterator from an Iterable

#Iterator Source

data Iterator :: Type -> Type

#next Source

next :: forall value. Iterator value -> { done :: Boolean, value :: Undefinable value }
Modules
Data.Iterable