joinToString

Full name: taxi.stdlib.joinToString

Signature

declare extension function <T> joinToString(values:T[], separator: String = ",", prefix: String? = null, postfix: String? = null): String

Description

Creates a string from all the elements separated using separator and using the given prefix and postfix if supplied. Null values are omitted.

find { order: Order } as {
   tagList: String = order.tags.joinToString(', ')
}

Examples

Joins array elements into a single string, with optional separator, prefix, and postfix.

Try it out

Schema
Query Plan
Play with this snippet by editing it here, or edit it on Taxi Playground
Result
Query failed
Next
Welcome to Taxi