データ接続と統合Pipeline Builder の式Reverse

Reverse

サポート対象:バッチ、高速

Reverses the order of the characters in a string or the elements in an array.

式のカテゴリー: 配列、文字列

引数

  • Expression: String or array to reverse.
    Expression<T>

型変数の制約: T に指定できる型:Array<AnyType> | String

出力タイプ: T

例

例1:基本ケース

引数の値:

  • Expression: [ 1, 2, 3 ]

出力: [ 3, 2, 1 ]


例2:基本ケース

引数の値:

  • Expression: Hello World

出力: dlroW olleH


例3:基本ケース

引数の値:

  • Expression: añb€

出力: €bña


例4:Null ケース

引数の値:

  • Expression: array
array出力
nullnull
[ 1, null ][ null, 1 ]

例5:Null ケース

引数の値:

  • Expression: string
string出力
nullnull

例6:エッジケース

引数の値:

  • Expression: empty string

出力: empty string