Home Manual Reference Source

References

summary
public

C Tape

Class that wraps a callable with a tape.

public

C Chain

public

C Group

private

F asyncIterableChain(iterables: AsyncIterable<AsyncIterable>): AsyncIterable

Utility function to chain an async iterable of async iterables.

private

F asyncIterableMap(callable: Function, iterable: AsyncIterable): AsyncIterable

Utility function to apply a sync callable to each item of an async iterable.

private

F async * asyncIteratorMap(callable: Function, iterator: AsyncIterator): AsyncIterator

Utility function to apply a sync callable to each item of an async iterator.

public

F chain(tape: Tape): Tape

Converts a tape of tapes of tokens to a tape of tokens.

public

F async exhaust(tape: Tape)

Exhausts a tape.

public

F fromAsyncIterable(_iterable: AsyncIterable): Tape

Converts an asynchronous iterable to a tape.

public

F fromCallable(callable: Function): Tape

Converts a callable to a tape.

public

F fromIterable(iterable: Iterable): Tape

Converts an iterable to a tape.

public

F fromIterator(iterator: Iterator | AsyncIterator): Tape

Converts an iterator to a tape.

private

F _fromReadStream(readStream: ReadStream): AsyncIterable

Converts a ReadStream object to an async iterable of tokens.

private

F async * _fromReadStreamIterator(iterator: AsyncIterator): AsyncIterable

Converts a ReadStream iterator to an async iterable of tokens.

public

F fromReadStream(readStream: ReadStream): Tape

Converts a ReadStream object to a tape.

public

F ignore(tape: Tape, toignore: Iterable): Tape

Filters a tape by ignoring a given set of tokens.

public

F map(callable: Function, tape: Tape): Tape

Applies a callable to each token of a tape.

private

F async skip(tape: Tape, toskip: Iterable): Promise

Outputs the next token of a tape that is not contained in a given toskip set.

private

F _split(tape: Tape, sep: Iterable): AsyncIterableIterator

Same as split, but returns an iterable rather than a tape.

public

F split(tape: Tape, sep: Iterable): Tape

Splits the input tape into a tape of tapes according to some set of separators.

public

F toArray(tape: Tape): Promise<any[]>

Converts a tape to an array.

public

Converts a tape to a callable.

public

F async * toAsyncIterable(tape: Tape): AsyncIterable

Converts a tape to an asynchronous iterable.

public

F toAsyncIterator(tape: Tape): AsyncIterator

Converts a tape to an async iterator.

public

Converts a tape to a string.

public

V eof: object

Shared object used as end of file.

public

V fromArray(array: Array): Tape: *

Converts an array to a tape.

public

V fromString(string: string): Tape: *

Converts a string to a tape.