Length

Not available in this language yet.
Length( value )
Length( value )
Length( value )
Not available in this language yet.
Not available in this language yet.
Not available in this language yet.
Length( value )

Description

The length function returns the number of code points in the string.

Parameters

Argument Type Definition and Requirements

value

String

The string for which to determine the length in code points.

Returns

An integer value which is the number of code points in the string.

Examples

System.out.println(
  client.query(
    Arr(
       Length("fire"),
       Length("fire and fireman"),
       Length("")
    )
  ).get());
Not available in this language yet.
Not available in this language yet.
Not available in this language yet.
Not available in this language yet.
Not available in this language yet.
Not available in this language yet.
Not available in this language yet.
[4, 16, 0]

Was this article helpful?

We're sorry to hear that.
Tell us how we can improve! documentation@fauna.com

Thank you for your feedback!