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.
(->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.
(->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.
(->long-predicate f)
(bi-consumer arg1 arg2 & code)
(bi-function arg1 arg2 & code)
Create an implementation of java.util.function.BiFunction.
Create an implementation of java.util.function.BiFunction.
(binary-operator arg1 arg2 & code)
Create an implementation of java.util.function.BinaryOperator
Create an implementation of java.util.function.BinaryOperator
A comparator that sorts null, NAN first, natural order
A comparator that sorts null, NAN first, natural order
A comparator that sorts null, NAN last, natural order
A comparator that sorts null, NAN last, natural order
(consumer varname & code)
Create an instance of a java.util.function.Consumer
Create an instance of a java.util.function.Consumer
(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
(double->obj varname & code)
(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.
(double-consumer varname & code)
Create an instance of a java.util.function.DoubleConsumer
Create an instance of a java.util.function.DoubleConsumer
(double-predicate varname & code)
Create an implementation of java.util.Function.DoublePredicate
Create an implementation of java.util.Function.DoublePredicate
(double-unary-operator varname & code)
Create an implementation of java.util.function.DoubleUnaryOperator
Create an implementation of java.util.function.DoubleUnaryOperator
(function arg & code)
Create a java.util.function.Function
Create a java.util.function.Function
(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
(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.
(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.
(long-consumer varname & code)
Create an instance of a java.util.function.LongConsumer
Create an instance of a java.util.function.LongConsumer
(long-predicate varname & code)
Create an implementation of java.util.Function.LongPredicate
Create an implementation of java.util.Function.LongPredicate
(long-unary-operator varname & code)
Create an implementation of java.util.function.LongUnaryOperator
Create an implementation of java.util.function.LongUnaryOperator
(make-comparator lhsvar rhsvar & code)
Make a java comparator.
Make a java comparator.
(make-double-comparator lhsvar rhsvar & code)
Make a comparator that gets passed two double arguments.
Make a comparator that gets passed two double arguments.
(make-long-comparator lhsvar rhsvar & code)
Make a comparator that gets passed two long arguments.
Make a comparator that gets passed two long arguments.
(obj->double)
(obj->double varname & code)
Create a function that converts objects to doubles
Create a function that converts objects to doubles
(obj->long)
(obj->long varname & code)
Create a function that converts objects to longs
Create a function that converts objects to longs
(predicate varname & code)
Create an implementation of java.util.Function.Predicate
Create an implementation of java.util.Function.Predicate
A reverse comparator that sorts in descending order
A reverse comparator that sorts in descending order
(unary-operator varname & code)
Create an implementation of java.util.function.UnaryOperator
Create an implementation of java.util.function.UnaryOperator
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close