Liking cljdoc? Tell your friends :D

jdk.util.function.Function

Represents a function that accepts one argument and produces a result.

This is a functional interface whose functional method is apply(Object).

Represents a function that accepts one argument and produces a result.

This is a functional interface
whose functional method is apply(Object).
raw docstring

*identityclj

(*identity)

Returns a function that always returns its input argument.

returns: a function that always returns its input argument - <T> java.util.function.Function<T,T>

Returns a function that always returns its input argument.

returns: a function that always returns its input argument - `<T> java.util.function.Function<T,T>`
raw docstring

and-thenclj

(and-then this after)

Returns a composed function that first applies this function to its input, and then applies the after function to the result. If evaluation of either function throws an exception, it is relayed to the caller of the composed function.

after - the function to apply after this function is applied - java.util.function.Function

returns: a composed function that first applies this function and then applies the after function - default <V> java.util.function.Function<T,V>

throws: java.lang.NullPointerException - if after is null

Returns a composed function that first applies this function to
 its input, and then applies the after function to the result.
 If evaluation of either function throws an exception, it is relayed to
 the caller of the composed function.

after - the function to apply after this function is applied - `java.util.function.Function`

returns: a composed function that first applies this function and then
 applies the after function - `default <V> java.util.function.Function<T,V>`

throws: java.lang.NullPointerException - if after is null
raw docstring

applyclj

(apply this t)

Applies this function to the given argument.

t - the function argument - T

returns: the function result - R

Applies this function to the given argument.

t - the function argument - `T`

returns: the function result - `R`
raw docstring

composeclj

(compose this before)

Returns a composed function that first applies the before function to its input, and then applies this function to the result. If evaluation of either function throws an exception, it is relayed to the caller of the composed function.

before - the function to apply before this function is applied - java.util.function.Function

returns: a composed function that first applies the before function and then applies this function - default <V> java.util.function.Function<V,R>

throws: java.lang.NullPointerException - if before is null

Returns a composed function that first applies the before
 function to its input, and then applies this function to the result.
 If evaluation of either function throws an exception, it is relayed to
 the caller of the composed function.

before - the function to apply before this function is applied - `java.util.function.Function`

returns: a composed function that first applies the before
 function and then applies this function - `default <V> java.util.function.Function<V,R>`

throws: java.lang.NullPointerException - if before is null
raw docstring

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

× close