\YaLinqoFunctions

Container for standard functions in the form of closures.

Summary

Methods
Properties
Constants
increment()
$identity
$key
$value
$true
$false
$blank
$compareStrict
$compareStrictReversed
$compareLoose
$compareLooseReversed
$compareInt
$compareIntReversed
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$identity

$identity : callable

Identity function: returns the only argument.

Type

callable — {(x) ==> x}

$key

$key : callable

Key function: returns the second argument of two.

Type

callable — {(v, k) ==> k}

$value

$value : callable

Value function: returns the first argument of two.

Type

callable — {(v, k) ==> v}

$true

$true : callable

True function: returns true.

Type

callable — {() ==> true}

$false

$false : callable

False function: returns false.

Type

callable — {() ==> false}

$blank

$blank : callable

Blank function: does nothing.

Type

callable — {() ==> {}}

$compareStrict

$compareStrict : callable

Compare strict function: returns -1, 0 or 1 based on === and > operators.

Type

callable

$compareStrictReversed

$compareStrictReversed : callable

Compare strict function reversed: returns 1, 0 or -1 based on === and > operators.

Type

callable

$compareLoose

$compareLoose : callable

Compare loose function: returns -1, 0 or 1 based on == and > operators.

Type

callable

$compareLooseReversed

$compareLooseReversed : callable

Compare loose function reversed: returns 1, 0 or -1 based on == and > operators.

Type

callable

$compareInt

$compareInt : callable

Compare int function: returns the difference between the first and the second argument.

Type

callable

$compareIntReversed

$compareIntReversed : callable

Compare int function reversed: returns the difference between the second and the first argument.

Type

callable

Methods

increment()

increment() : callable

Increment function: returns incremental integers starting from 0.

Returns

callable