nim_iterator_stream_experiment/stream/streamsteps

Types

EmptyStep = object
  nil
  Source Edit
SingleStep = object
  consumed: bool
  Source Edit
ZipStep[SA; SB] = Pair[SA, SB]
Since 0.4.0.   Source Edit
LimitStep[S; N] = object
  step: S
  count: N
  Source Edit
SkipStep[S; N] = object
  step: S
  count: N
  Source Edit
TakeWhileStep[S; T] = object
  step: S
  item: Optional[T]
  Source Edit

Funcs

func emptyStep(): EmptyStep {...}{.raises: [], tags: [].}
  Source Edit
func singleStep(consumed: bool): SingleStep {...}{.raises: [], tags: [].}
  Source Edit
func isConsumed(X: typedesc[SingleStep]): Lens[X, bool]
  Source Edit
func zipStep[SA; SB](left: SA; right: SB): ZipStep[SA, SB]
Since 0.4.0.   Source Edit
func limitStep[S; N: SomeNatural](step: S; count: N): LimitStep[S, N]
  Source Edit
func step[S; N: SomeNatural](X: typedesc[LimitStep[S, N]]): Lens[X, S]
  Source Edit
func count[S; N: SomeNatural](X: typedesc[LimitStep[S, N]]): Lens[X, N]
  Source Edit
func skipStep[S; N: SomeNatural](step: S; count: N): SkipStep[S, N]
  Source Edit
func step[S; N: SomeNatural](X: typedesc[SkipStep[S, N]]): Lens[X, S]
  Source Edit
func count[S; N: SomeNatural](X: typedesc[SkipStep[S, N]]): Lens[X, N]
  Source Edit
func takeWhileStep[S; T](step: S; item: Optional[T]): TakeWhileStep[S, T]
  Source Edit
func step[S; T](X: typedesc[TakeWhileStep[S, T]]): Lens[X, S]
  Source Edit
func item[S; T](X: typedesc[TakeWhileStep[S, T]]): Lens[X, Optional[T]]
  Source Edit