View source

class thx.Functions

Available on all platforms

Generic helper for functions.

Class Fields

static function equality<T>(a:T, b:T):Bool

It provides strict equality between the two arguments a and b.

static function fn<T>(fn:Void -> T, restArgs:Dynamic):Dynamic

Lambda expressions

static function identity<T>(value:T):T

The identity function returns the value of its argument.

static function noop():Void

noop is a function that has no side effects and doesn't return any value.

static function with(context:Dynamic, body:Dynamic):Dynamic

Toggle inherited fields