Queue Class

DECLARATION
public static class Queue
NAMESPACE
LanguageExt

Methods

append<T>(IEnumerable<T>, IEnumerable<T>)
PARAMETERS
lhs
IEnumerable<T>
rhs
IEnumerable<T>
DECLARATION
[Pure]
public static IEnumerable<T> append<T>(IEnumerable<T> lhs, IEnumerable<T> rhs)
RETURNS
IEnumerable<T>
choose<T, U>(Que<T>, Func<T, Option<U>>)
PARAMETERS
queue
Que<T>
selector
Func<T, Option<U>>
DECLARATION
[Pure]
public static IEnumerable<U> choose<T, U>(Que<T> queue, Func<T, Option<U>> selector)
RETURNS
IEnumerable<U>
choose<T, U>(Que<T>, Func<int, T, Option<U>>)
PARAMETERS
queue
Que<T>
selector
Func<int, T, Option<U>>
DECLARATION
[Pure]
public static IEnumerable<U> choose<T, U>(Que<T> queue, Func<int, T, Option<U>> selector)
RETURNS
IEnumerable<U>
clear<T>(Que<T>)
PARAMETERS
queue
Que<T>
DECLARATION
[Pure]
public static Que<T> clear<T>(Que<T> queue)
RETURNS
Que<T>
collect<T, R>(Que<T>, Func<T, IEnumerable<R>>)
PARAMETERS
queue
Que<T>
map
Func<T, IEnumerable<R>>
DECLARATION
[Pure]
public static IEnumerable<R> collect<T, R>(Que<T> queue, Func<T, IEnumerable<R>> map)
RETURNS
IEnumerable<R>
deq<T>(Que<T>)
PARAMETERS
queue
Que<T>
DECLARATION
[Pure]
public static ValueTuple<Que<T>, Option<T>> deq<T>(Que<T> queue)
RETURNS
ValueTuple<Que<T>, Option<T>>
deqUnsafe<T>(Que<T>)
PARAMETERS
queue
Que<T>
DECLARATION
[Pure]
public static ValueTuple<Que<T>, T> deqUnsafe<T>(Que<T> queue)
RETURNS
ValueTuple<Que<T>, T>
distinct<EQ, T>(Que<T>)
PARAMETERS
queue
Que<T>
DECLARATION
[Pure]
public static IEnumerable<T> distinct<EQ, T>(Que<T> queue)
RETURNS
IEnumerable<T>
CONSTRAINTS
where EQ : struct Eq<T>
distinct<T>(Que<T>)
PARAMETERS
queue
Que<T>
DECLARATION
[Pure]
public static IEnumerable<T> distinct<T>(Que<T> queue)
RETURNS
IEnumerable<T>
enq<T>(Que<T>, T)
PARAMETERS
queue
Que<T>
value
T
DECLARATION
[Pure]
public static Que<T> enq<T>(Que<T> queue, T value)
RETURNS
Que<T>
exists<T>(Que<T>, Func<T, bool>)
PARAMETERS
queue
Que<T>
pred
Func<T, bool>
DECLARATION
[Pure]
public static bool exists<T>(Que<T> queue, Func<T, bool> pred)
RETURNS
bool
filter<T>(Que<T>, Func<T, bool>)
PARAMETERS
queue
Que<T>
predicate
Func<T, bool>
DECLARATION
[Pure]
public static IEnumerable<T> filter<T>(Que<T> queue, Func<T, bool> predicate)
RETURNS
IEnumerable<T>
find<T>(Que<T>, Func<T, bool>)
PARAMETERS
queue
Que<T>
pred
Func<T, bool>
DECLARATION
[Pure]
public static Option<T> find<T>(Que<T> queue, Func<T, bool> pred)
RETURNS
Option<T>
fold<S, T>(Que<T>, S, Func<S, T, S>)
SUMMARY

Folds each value of the QueT into an S. https://en.wikipedia.org/wiki/Fold_(higher-order_function)

PARAMETERS
queue
Que<T>
Queue to fold
state
S
Initial state
folder
Func<S, T, S>
Fold function
DECLARATION
[Pure]
public static S fold<S, T>(Que<T> queue, S state, Func<S, T, S> folder)
RETURNS
S
Folded state
foldBack<S, T>(Que<T>, S, Func<S, T, S>)
SUMMARY

Folds each value of the QueT into an S, but in reverse order. https://en.wikipedia.org/wiki/Fold_(higher-order_function)

PARAMETERS
queue
Que<T>
Queue to fold
state
S
Initial state
folder
Func<S, T, S>
Fold function
DECLARATION
[Pure]
public static S foldBack<S, T>(Que<T> queue, S state, Func<S, T, S> folder)
RETURNS
S
Folded state
forall<T>(Que<T>, Func<T, bool>)
PARAMETERS
queue
Que<T>
pred
Func<T, bool>
DECLARATION
[Pure]
public static bool forall<T>(Que<T> queue, Func<T, bool> pred)
RETURNS
bool
iter<T>(Que<T>, Action<T>)
PARAMETERS
queue
Que<T>
action
Action<T>
DECLARATION
public static Unit iter<T>(Que<T> queue, Action<T> action)
iter<T>(Que<T>, Action<int, T>)
PARAMETERS
queue
Que<T>
action
Action<int, T>
DECLARATION
public static Unit iter<T>(Que<T> queue, Action<int, T> action)
length<T>(Que<T>)
PARAMETERS
queue
Que<T>
DECLARATION
[Pure]
public static int length<T>(Que<T> queue)
RETURNS
int
map<T, R>(Que<T>, Func<int, T, R>)
PARAMETERS
queue
Que<T>
map
Func<int, T, R>
DECLARATION
[Pure]
public static IEnumerable<R> map<T, R>(Que<T> queue, Func<int, T, R> map)
RETURNS
IEnumerable<R>
peek<T>(Que<T>)
PARAMETERS
queue
Que<T>
DECLARATION
[Pure]
public static Option<T> peek<T>(Que<T> queue)
RETURNS
Option<T>
peekUnsafe<T>(Que<T>)
PARAMETERS
queue
Que<T>
DECLARATION
[Pure]
public static T peekUnsafe<T>(Que<T> queue)
RETURNS
T
reduce<T>(Que<T>, Func<T, T, T>)
PARAMETERS
queue
Que<T>
reducer
Func<T, T, T>
DECLARATION
[Pure]
public static T reduce<T>(Que<T> queue, Func<T, T, T> reducer)
RETURNS
T
reduceBack<T>(Que<T>, Func<T, T, T>)
PARAMETERS
queue
Que<T>
reducer
Func<T, T, T>
DECLARATION
[Pure]
public static T reduceBack<T>(Que<T> queue, Func<T, T, T> reducer)
RETURNS
T
rev<T>(Que<T>)
PARAMETERS
queue
Que<T>
DECLARATION
[Pure]
public static IEnumerable<T> rev<T>(Que<T> queue)
RETURNS
IEnumerable<T>
scan<S, T>(Que<T>, S, Func<S, T, S>)
PARAMETERS
queue
Que<T>
state
S
folder
Func<S, T, S>
DECLARATION
[Pure]
public static IEnumerable<S> scan<S, T>(Que<T> queue, S state, Func<S, T, S> folder)
RETURNS
IEnumerable<S>
scanBack<S, T>(Que<T>, S, Func<S, T, S>)
PARAMETERS
queue
Que<T>
state
S
folder
Func<S, T, S>
DECLARATION
[Pure]
public static IEnumerable<S> scanBack<S, T>(Que<T> queue, S state, Func<S, T, S> folder)
RETURNS
IEnumerable<S>
take<T>(Que<T>, int)
PARAMETERS
queue
Que<T>
count
int
DECLARATION
[Pure]
public static IEnumerable<T> take<T>(Que<T> queue, int count)
RETURNS
IEnumerable<T>
takeWhile<T>(Que<T>, Func<T, bool>)
PARAMETERS
queue
Que<T>
pred
Func<T, bool>
DECLARATION
[Pure]
public static IEnumerable<T> takeWhile<T>(Que<T> queue, Func<T, bool> pred)
RETURNS
IEnumerable<T>
takeWhile<T>(Que<T>, Func<T, int, bool>)
PARAMETERS
queue
Que<T>
pred
Func<T, int, bool>
DECLARATION
[Pure]
public static IEnumerable<T> takeWhile<T>(Que<T> queue, Func<T, int, bool> pred)
RETURNS
IEnumerable<T>
zip<T, U, V>(Que<T>, IEnumerable<U>, Func<T, U, V>)
PARAMETERS
queue
Que<T>
other
IEnumerable<U>
zipper
Func<T, U, V>
DECLARATION
[Pure]
public static IEnumerable<V> zip<T, U, V>(Que<T> queue, IEnumerable<U> other, Func<T, U, V> zipper)
RETURNS
IEnumerable<V>