Query Class

DECLARATION
public static class Query
NAMESPACE
LanguageExt

Methods

append<T>(IQueryable<T>, IQueryable<T>)
PARAMETERS
lhs
IQueryable<T>
rhs
IQueryable<T>
DECLARATION
public static IQueryable<T> append<T>(IQueryable<T> lhs, IQueryable<T> rhs)
RETURNS
IQueryable<T>
choose<T, U>(IQueryable<T>, Expression<Func<T, Option<U>>>)
PARAMETERS
list
IQueryable<T>
selector
Expression<Func<T, Option<U>>>
DECLARATION
public static IQueryable<U> choose<T, U>(IQueryable<T> list, Expression<Func<T, Option<U>>> selector)
RETURNS
IQueryable<U>
choose<T, U>(IQueryable<T>, Expression<Func<int, T, Option<U>>>)
PARAMETERS
list
IQueryable<T>
selector
Expression<Func<int, T, Option<U>>>
DECLARATION
public static IQueryable<U> choose<T, U>(IQueryable<T> list, Expression<Func<int, T, Option<U>>> selector)
RETURNS
IQueryable<U>
collect<T, R>(IQueryable<T>, Expression<Func<T, IEnumerable<R>>>)
PARAMETERS
list
IQueryable<T>
map
Expression<Func<T, IEnumerable<R>>>
DECLARATION
public static IQueryable<R> collect<T, R>(IQueryable<T> list, Expression<Func<T, IEnumerable<R>>> map)
RETURNS
IQueryable<R>
distinct<T>(IQueryable<T>)
PARAMETERS
list
IQueryable<T>
DECLARATION
public static IQueryable<T> distinct<T>(IQueryable<T> list)
RETURNS
IQueryable<T>
exists<T>(IQueryable<T>, Expression<Func<T, bool>>)
PARAMETERS
list
IQueryable<T>
pred
Expression<Func<T, bool>>
DECLARATION
public static bool exists<T>(IQueryable<T> list, Expression<Func<T, bool>> pred)
RETURNS
bool
filter<T>(IQueryable<T>, Expression<Func<T, bool>>)
PARAMETERS
list
IQueryable<T>
predicate
Expression<Func<T, bool>>
DECLARATION
public static IQueryable<T> filter<T>(IQueryable<T> list, Expression<Func<T, bool>> predicate)
RETURNS
IQueryable<T>
find<T>(IQueryable<T>, Expression<Func<T, bool>>)
PARAMETERS
list
IQueryable<T>
pred
Expression<Func<T, bool>>
DECLARATION
public static Option<T> find<T>(IQueryable<T> list, Expression<Func<T, bool>> pred)
RETURNS
Option<T>
fold<S, T>(IQueryable<T>, S, Expression<Func<S, T, S>>)
PARAMETERS
list
IQueryable<T>
state
S
folder
Expression<Func<S, T, S>>
DECLARATION
public static S fold<S, T>(IQueryable<T> list, S state, Expression<Func<S, T, S>> folder)
RETURNS
S
foldBack<S, T>(IQueryable<T>, S, Expression<Func<S, T, S>>)
PARAMETERS
list
IQueryable<T>
state
S
folder
Expression<Func<S, T, S>>
DECLARATION
public static S foldBack<S, T>(IQueryable<T> list, S state, Expression<Func<S, T, S>> folder)
RETURNS
S
forall<T>(IQueryable<T>, Expression<Func<T, bool>>)
PARAMETERS
list
IQueryable<T>
pred
Expression<Func<T, bool>>
DECLARATION
public static bool forall<T>(IQueryable<T> list, Expression<Func<T, bool>> pred)
RETURNS
bool
freeze<T>(IQueryable<T>)
PARAMETERS
list
IQueryable<T>
DECLARATION
public static Lst<T> freeze<T>(IQueryable<T> list)
RETURNS
Lst<T>
head<T>(IQueryable<T>)
PARAMETERS
list
IQueryable<T>
DECLARATION
public static T head<T>(IQueryable<T> list)
RETURNS
T
headOrNone<T>(IQueryable<T>)
PARAMETERS
list
IQueryable<T>
DECLARATION
public static Option<T> headOrNone<T>(IQueryable<T> list)
RETURNS
Option<T>
length<T>(IQueryable<T>)
PARAMETERS
list
IQueryable<T>
DECLARATION
public static int length<T>(IQueryable<T> list)
RETURNS
int
map<T, R>(IQueryable<T>, Expression<Func<T, R>>)
PARAMETERS
list
IQueryable<T>
map
Expression<Func<T, R>>
DECLARATION
public static IQueryable<R> map<T, R>(IQueryable<T> list, Expression<Func<T, R>> map)
RETURNS
IQueryable<R>
map<T, R>(IQueryable<T>, Expression<Func<int, T, R>>)
PARAMETERS
list
IQueryable<T>
map
Expression<Func<int, T, R>>
DECLARATION
public static IQueryable<R> map<T, R>(IQueryable<T> list, Expression<Func<int, T, R>> map)
RETURNS
IQueryable<R>
reduce<T>(IQueryable<T>, Expression<Func<T, T, T>>)
PARAMETERS
list
IQueryable<T>
reducer
Expression<Func<T, T, T>>
DECLARATION
public static T reduce<T>(IQueryable<T> list, Expression<Func<T, T, T>> reducer)
RETURNS
T
reduceBack<T>(IQueryable<T>, Expression<Func<T, T, T>>)
PARAMETERS
list
IQueryable<T>
reducer
Expression<Func<T, T, T>>
DECLARATION
public static T reduceBack<T>(IQueryable<T> list, Expression<Func<T, T, T>> reducer)
RETURNS
T
rev<T>(IQueryable<T>)
PARAMETERS
list
IQueryable<T>
DECLARATION
public static IQueryable<T> rev<T>(IQueryable<T> list)
RETURNS
IQueryable<T>
sum(IQueryable<int>)
PARAMETERS
list
IQueryable<int>
DECLARATION
public static int sum(IQueryable<int> list)
RETURNS
int
sum(IQueryable<float>)
PARAMETERS
list
IQueryable<float>
DECLARATION
public static float sum(IQueryable<float> list)
RETURNS
float
sum(IQueryable<double>)
PARAMETERS
list
IQueryable<double>
DECLARATION
public static double sum(IQueryable<double> list)
RETURNS
double
sum(IQueryable<decimal>)
PARAMETERS
list
IQueryable<decimal>
DECLARATION
public static decimal sum(IQueryable<decimal> list)
RETURNS
decimal
tail<T>(IQueryable<T>)
PARAMETERS
list
IQueryable<T>
DECLARATION
public static IQueryable<T> tail<T>(IQueryable<T> list)
RETURNS
IQueryable<T>
take<T>(IQueryable<T>, int)
PARAMETERS
list
IQueryable<T>
count
int
DECLARATION
public static IQueryable<T> take<T>(IQueryable<T> list, int count)
RETURNS
IQueryable<T>
takeWhile<T>(IQueryable<T>, Expression<Func<T, bool>>)
PARAMETERS
list
IQueryable<T>
pred
Expression<Func<T, bool>>
DECLARATION
public static IQueryable<T> takeWhile<T>(IQueryable<T> list, Expression<Func<T, bool>> pred)
RETURNS
IQueryable<T>
takeWhile<T>(IQueryable<T>, Expression<Func<T, int, bool>>)
PARAMETERS
list
IQueryable<T>
pred
Expression<Func<T, int, bool>>
DECLARATION
public static IQueryable<T> takeWhile<T>(IQueryable<T> list, Expression<Func<T, int, bool>> pred)
RETURNS
IQueryable<T>
zip<T, U, V>(IQueryable<T>, IEnumerable<U>, Expression<Func<T, U, V>>)
PARAMETERS
list
IQueryable<T>
other
IEnumerable<U>
zipper
Expression<Func<T, U, V>>
DECLARATION
public static IQueryable<V> zip<T, U, V>(IQueryable<T> list, IEnumerable<U> other, Expression<Func<T, U, V>> zipper)
RETURNS
IQueryable<V>