id
fun <A> id(a: A): A
Identity function.
Example usage:
1.fold({ 1 }, ::id)
Parameters
a
- the value which will be returned.
Return the given argument.
fun <A> id(a: A): A
Identity function.
Example usage:
1.fold({ 1 }, ::id)
a
- the value which will be returned.
Return the given argument.