IterableLongest

See javadoc - uk.gov.gchq.koryphe.impl.function.IterableLongest

Available since Koryphe version 1.9.0

Returns the longest item in the provided iterable.

Examples

Get longest in the iterable

Java
JSON
Full JSON
Python
final IterableLongest function = new IterableLongest();
{
  "class" : "IterableLongest"
}
{
  "class" : "uk.gov.gchq.koryphe.impl.function.IterableLongest"
}
g.IterableLongest()

Input type:

java.lang.Iterable

Example inputs:

Input TypeInputResult TypeResult
java.util.ArrayList[[1, 2], [1.5]]java.util.ArrayList[1, 2]
java.util.ArrayList[which, is, the, longest, word]java.lang.Stringlongest
java.util.ArrayList[]null
nullnull

results matching ""

    No results matching ""