View Source Iter.Iterable.WhileDropper (iterex v0.1.2)

An iterable that drops elements until predicate returns a truthy value.

Summary

Functions

Creates an iterable that drops elements until predicate returns a truthy value.

Types

@type t() :: %Iter.Iterable.WhileDropper{
  iterable: Iter.Iterable.t(),
  predicate: (Iter.Iterable.element() -> boolean())
}

Functions

Link to this function

new(iterable, predicate)

View Source
@spec new(Iter.Iterable.t(), (Iter.Iterable.element() -> boolean())) :: t()

Creates an iterable that drops elements until predicate returns a truthy value.