Liking cljdoc? Tell your friends :D

ham-fisted.function

Helpers for working with java.util.function package objects.

Helpers for working with [java.util.function](https://docs.oracle.com/javase/8/docs/api/java/util/function/package-summary.html)
package objects.
raw docstring

->bi-functionclj

(->bi-function cljfn)

Convert an object to a java.util.BiFunction. Object can either already be a bi-function or an IFn to be invoked with 2 arguments.

Convert an object to a java.util.BiFunction. Object can either already be a
bi-function or an IFn to be invoked with 2 arguments.
raw docstring

->functionclj

(->function cljfn)

Convert an object to a java Function. Object can either already be a Function or an IFn to be invoked.

Convert an object to a java Function. Object can either already be a
Function or an IFn to be invoked.
raw docstring

->long-predicateclj

(->long-predicate f)

bi-consumercljmacro

(bi-consumer arg1 arg2 & code)

bi-functioncljmacro

(bi-function arg1 arg2 & code)

Create an implementation of java.util.function.BiFunction.

Create an implementation of java.util.function.BiFunction.
raw docstring

binary-operatorcljmacro

(binary-operator arg1 arg2 & code)

Create an implementation of java.util.function.BinaryOperator

Create an implementation of java.util.function.BinaryOperator
raw docstring

comp-nan-firstclj

A comparator that sorts null, NAN first, natural order

A comparator that sorts null, NAN first, natural order
raw docstring

comp-nan-lastclj

A comparator that sorts null, NAN last, natural order

A comparator that sorts null, NAN last, natural order
raw docstring

consumercljmacro

(consumer varname & code)

Create an instance of a java.util.function.Consumer

Create an instance of a java.util.function.Consumer
raw docstring

double->longcljmacro

(double->long varname & code)

Create a function that receives a double and returns a long

Create a function that receives a double and returns a long
raw docstring

double->objcljmacro

(double->obj varname & code)

double-binary-operatorcljmacro

(double-binary-operator lvar rvar & code)

Create a binary operator that is specialized for double values. Useful to speed up operations such as sorting or summation.

Create a binary operator that is specialized for double values.  Useful to speed up
operations such as sorting or summation.
raw docstring

double-consumercljmacro

(double-consumer varname & code)

Create an instance of a java.util.function.DoubleConsumer

Create an instance of a java.util.function.DoubleConsumer
raw docstring

double-predicatecljmacro

(double-predicate varname & code)

Create an implementation of java.util.Function.DoublePredicate

Create an implementation of java.util.Function.DoublePredicate
raw docstring

double-unary-operatorcljmacro

(double-unary-operator varname & code)

Create an implementation of java.util.function.DoubleUnaryOperator

Create an implementation of java.util.function.DoubleUnaryOperator
raw docstring

functioncljmacro

(function arg & code)

Create a java.util.function.Function

Create a java.util.function.Function
raw docstring

long->doublecljmacro

(long->double varname & code)

Create a function that receives a long and returns a double

Create a function that receives a long and returns a double
raw docstring

long->objcljmacro

(long->obj varname & code)

Create a function that receives a primitive long and returns an object.

Create a function that receives a primitive long and returns an object.
raw docstring

long-binary-operatorcljmacro

(long-binary-operator lvar rvar & code)

Create a binary operator that is specialized for long values. Useful to speed up operations such as sorting or summation.

Create a binary operator that is specialized for long values.  Useful to speed up
operations such as sorting or summation.
raw docstring

long-consumercljmacro

(long-consumer varname & code)

Create an instance of a java.util.function.LongConsumer

Create an instance of a java.util.function.LongConsumer
raw docstring

long-predicatecljmacro

(long-predicate varname & code)

Create an implementation of java.util.Function.LongPredicate

Create an implementation of java.util.Function.LongPredicate
raw docstring

long-unary-operatorcljmacro

(long-unary-operator varname & code)

Create an implementation of java.util.function.LongUnaryOperator

Create an implementation of java.util.function.LongUnaryOperator
raw docstring

make-comparatorcljmacro

(make-comparator lhsvar rhsvar & code)

Make a java comparator.

Make a java comparator.
raw docstring

make-double-comparatorcljmacro

(make-double-comparator lhsvar rhsvar & code)

Make a comparator that gets passed two double arguments.

Make a comparator that gets passed two double arguments.
raw docstring

make-long-comparatorcljmacro

(make-long-comparator lhsvar rhsvar & code)

Make a comparator that gets passed two long arguments.

Make a comparator that gets passed two long arguments.
raw docstring

obj->doublecljmacro

(obj->double)
(obj->double varname & code)

Create a function that converts objects to doubles

Create a function that converts objects to doubles
raw docstring

obj->longcljmacro

(obj->long)
(obj->long varname & code)

Create a function that converts objects to longs

Create a function that converts objects to longs
raw docstring

predicatecljmacro

(predicate varname & code)

Create an implementation of java.util.Function.Predicate

Create an implementation of java.util.Function.Predicate
raw docstring

rcompclj

A reverse comparator that sorts in descending order

A reverse comparator that sorts in descending order
raw docstring

unary-operatorcljmacro

(unary-operator varname & code)

Create an implementation of java.util.function.UnaryOperator

Create an implementation of java.util.function.UnaryOperator
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close