Space

Not available in this language yet.
Space( count )
Space( count )
Space( count )
Not available in this language yet.
Space( count )

Description

The space function returns a string of the specified number of spaces.

Parameters

Argument Type Definition and Requirements

count

Integer

The number of spaces returned in the string.

Returns

A string value which has the specified number of spaces.

Examples

The query below executes an array of independent Space operations and returns the results in an array. The result array position matches the execution array position. The first operation takes the count of 1 and returns a string with a single space, placing it in the top position of the result array. The second operation calls Space with a count of 20 and returns a string of 20 spaces, placing it in the second position of the result array.

Not available in this language yet.
Not available in this language yet.
System.out.println(
  client.query(
    Arr(
       Space(1),
       Space(20)
    )
  ).get());
[" ", "                    "]
Not available in this language yet.
Not available in this language yet.
Not available in this language yet.

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!