hunt.Functions

Undocumented in source.

Members

Aliases

Action
alias Action = void delegate()

An action.

Action1
alias Action1(T) = void delegate(T t)

A one-argument action.

Action2
alias Action2(T1, T2) = void delegate(T1 t1, T2 t2)

A two-argument action.

Action3
alias Action3(T1, T2, T3) = void delegate(T1 t1, T2 t2, T3 t3)

A three-argument action.

Action4
alias Action4(T1, T2, T3, T4) = void delegate(T1 t1, T2 t2, T3 t3, T4 t4)

A four-argument action.

Action5
alias Action5(T1, T2, T3, T4, T5) = void delegate(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5)

A five-argument action.

Action6
alias Action6(T1, T2, T3, T4, T5, T6) = void delegate(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6)

A six-argument action.

BiConsumer
alias BiConsumer = Action2

Represents an operation that accepts two input arguments and returns no result. This is the two-arity specialization of {@link Consumer}. Unlike most other functional interfaces, {@code BiConsumer} is expected to operate via side-effects.

BiFunction
alias BiFunction = Func2

Represents a function that accepts two arguments and produces a result. This is the two-arity specialization of {@link Function}.

Consumer
alias Consumer = Action1

Represents an operation that accepts a single input argument and returns no result. Unlike most other functional interfaces, {@code Consumer} is expected to operate via side-effects.

EventHandler
alias EventHandler = ActionN!(Object, EventArgs)
Undocumented in source.
Func
alias Func(R) = R delegate()

Represents a function.

Func
alias Func(T, R) = R delegate(T)
Undocumented in source.
Func
alias Func(T1, T2, R) = R delegate(T1, T2)
Undocumented in source.
Func
alias Func(T1, T2, T3, R) = R delegate(T1, T2, T3)
Undocumented in source.
Func
alias Func(T1, T2, T3, T4, R) = R delegate(T1, T2, T3, T4)
Undocumented in source.
Func
alias Func(T1, T2, T3, T4, T5, R) = R delegate(T1, T2, T3, T4, T5)
Undocumented in source.
Func
alias Func(T1, T2, T3, T4, T5, T6, R) = R delegate(T1, T2, T3, T4, T5, T6)
Undocumented in source.
Func1
alias Func1(T1, R) = R delegate(T1 t1)

Represents a function with one argument.

Func2
alias Func2(T1, T2, R) = R delegate(T1 t1, T2 t2)

Represents a function with two arguments.

Func3
alias Func3(T1, T2, T3, R) = R delegate(T1 t1, T2 t2, T3 t3)

Represents a function with three arguments.

Func4
alias Func4(T1, T2, T3, T4, R) = R delegate(T1 t1, T2 t2, T3 t3, T4 t4)

Represents a function with four arguments.

Func5
alias Func5(T1, T2, T3, T4, T5, R) = R delegate(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5)

Represents a function with five arguments.

Func6
alias Func6(T1, T2, T3, T4, T5, T6, R) = R delegate(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6)

Represents a function with six arguments.

FuncN
deprecated alias FuncN(T, R) = R delegate(T[] args...)
Undocumented in source.
Function
alias Function = Func1
Predicate
alias Predicate(T) = bool delegate(T t)
SimpleActionHandler
alias SimpleActionHandler = ActionN!(Object)
Undocumented in source.
SimpleEventHandler
alias SimpleEventHandler = Action
Undocumented in source.
Supplier
alias Supplier = Func

Represents a supplier of results.

Classes

EventArgs
class EventArgs

Functions

hasKey
bool hasKey(V[K] arr, K key)
Undocumented in source. Be warned that the author may not have intended to support it.
hashCode
size_t hashCode(T[] a)
Undocumented in source. Be warned that the author may not have intended to support it.

Templates

ActionN
template ActionN(T...)

A vector-argument action.

Meta