Concat

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

Available since Koryphe version 1.0.0

Objects are concatenated by concatenating the outputs from calling toString on each object.

Examples

Concat objects

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

Input type:

java.lang.Object, java.lang.Object

Example inputs:

Input TypeInputResult TypeResult
[java.lang.String, java.lang.String][foo, bar]java.lang.Stringfoo,bar
[java.lang.String, ][foo, null]java.lang.Stringfoo
[java.lang.String, java.lang.String][foo, ]java.lang.Stringfoo,
[java.lang.String, java.lang.Double][foo, 1.2]java.lang.Stringfoo,1.2
[ ,java.lang.String][null, bar]java.lang.Stringbar
[java.lang.Integer, java.lang.Integer][1, 2]java.lang.String1,2

results matching ""

    No results matching ""