Concat

Copied!
( value, [ separator ] )

Description

The Concat function returns a string which has joined a list of strings into a single string.

Parameters

Parameter Type Definition and Requirements

value

Array of Strings

An array of strings to join.

separator

String

Optional - This value is placed between each joined string. Default is an empty string ("").

Returns

A string value.

Examples

The following query takes an array of Strings containing "Hen" and "Wen" as its first argument and a separator of a space (" ") as its second argument. The result of the Concat operation is "Hen Wen".

Copied!
(['Hen', 'Wen'], ' ')
'Hen Wen'
Query metrics:
  •    bytesIn:  40

  •   bytesOut:  22

  • computeOps:   1

  •    readOps:   0

  •   writeOps:   0

  •  readBytes:   0

  • writeBytes:   0

  •  queryTime: 5ms

  •    retries:   0

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!