Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IForkedResult<T, R>

Some methods need to return both a result obtained from an operation on an iterable as well as a new iterable that can be used for chaining other operations.

For example, isEmpty takes an iterable and checks whether it contains no items. This may result in an item being consumed from the iterable. The new iterable returned by isEmpty always contains all items of the original iterable.

Type parameters

  • T

    Type of the items the iterable contains.

  • R

    Type of the value returned by the method.

Hierarchy

  • IForkedResult

Index

Properties

Properties

iterable

iterable: Iterable<T>

The new iterable that can be used for further operations.

result

result: R

The result the method produced.

Generated using TypeDoc