Header menu logo XParsec

Reader Module

Functions and values

Function or value Description

ofArray a state

Full Usage: ofArray a state

Parameters:
    a : 'T array
    state : 'a

Returns: Reader<'T, 'a, ReadableArray<'T>, ReadableArraySlice<'T>>

Creates a new reader from the input array and state.

a : 'T array
state : 'a
Returns: Reader<'T, 'a, ReadableArray<'T>, ReadableArraySlice<'T>>

ofImmutableArray a state

Full Usage: ofImmutableArray a state

Parameters:
Returns: Reader<'T, 'a, ReadableImmutableArray<'T>, ReadableImmutableArraySlice<'T>>

Creates a new reader from the input immutable array and state.

a : ImmutableArray<'T>
state : 'a
Returns: Reader<'T, 'a, ReadableImmutableArray<'T>, ReadableImmutableArraySlice<'T>>

ofResizeArray a state

Full Usage: ofResizeArray a state

Parameters:
    a : ResizeArray<'T>
    state : 'a

Returns: Reader<'T, 'a, ReadableResizeArray<'T>, ReadableResizeArraySlice<'T>>

Creates a new reader from the input resize array and state.

a : ResizeArray<'T>
state : 'a
Returns: Reader<'T, 'a, ReadableResizeArray<'T>, ReadableResizeArraySlice<'T>>

ofStream stream bufferSize state

Full Usage: ofStream stream bufferSize state

Parameters:
    stream : Stream
    bufferSize : int
    state : 'a

Returns: Reader<byte, 'a, ReadableStream, ReadableStreamSlice>

Creates a new reader from the input stream and state.

stream : Stream
bufferSize : int
state : 'a
Returns: Reader<byte, 'a, ReadableStream, ReadableStreamSlice>

ofString s state

Full Usage: ofString s state

Parameters:
    s : string
    state : 'a

Returns: Reader<char, 'a, ReadableString, ReadableStringSlice>

Creates a new reader from the input string and state.

s : string
state : 'a
Returns: Reader<char, 'a, ReadableString, ReadableStringSlice>

Type something to start searching.