Skip to content

Commit

Permalink
Merge pull request #4655 from fisuda/patch
Browse files Browse the repository at this point in the history
(JP) Add Japanese documentation about transformations (#4654)
  • Loading branch information
fgalan authored Mar 4, 2025
2 parents 887e1b3 + e802b59 commit c1ee847
Show file tree
Hide file tree
Showing 2 changed files with 164 additions and 8 deletions.
160 changes: 158 additions & 2 deletions doc/manuals.jp/orion-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@
- [`keys`](#keys)
- [`arrSum`](#arrsum)
- [`arrAvg`](#arravg)
- [`arrMax`](#arrmax)
- [`arrMin`](#arrmin)
- [`arrMed`](#arrmed)
- [`arrSort`](#arrsort)
- [`arrReverse`](#arrreverse)
- [`now`](#now)
- [`toIsoString`](#toisostring)
- [`getTime`](#gettime)
Expand Down Expand Up @@ -3224,10 +3229,16 @@ c|keys

#### arrSum

配列の要素の合計を返します (配列内の入力または配列に数値以外の項目が含まれている場合は `null` を返します)
配列の要素の合計を返します。

追加引数: なし

この変換は、次の場合に `null` を返します:

* 入力が配列ではない
* 配列が空である
* 配列に数値以外の項目が含まれている

例 (コンテキスト `{"c": [1, 5]}`):

```
Expand All @@ -3244,10 +3255,16 @@ c|arrSum

#### arrAvg

配列の要素の平均を返します (配列内の入力または配列に数値以外の項目が含まれている場合は `null` を返します)
配列の要素の平均を返します。

追加引数: なし

この変換は、次の場合に `null` を返します:

* 入力が配列ではない
* 配列が空である
* 配列に数値以外の項目が含まれている

例 (コンテキスト `{"c": [1, 5]}`):

```
Expand All @@ -3260,6 +3277,145 @@ c|arrAvg
3
```

<a name="arrMax"></a>

#### arrMax

配列の要素の最大値を返します。

追加の引数: なし

この変換は、次の場合に `null` を返します:

* 入力が配列ではない
* 配列が空である
* 配列に数値以外の項目が含まれている

例 (コンテキスト `{"c": [1, 5]}`):

```
c|arrMax
```

結果は

```
5
```

<a name="arrMin"></a>

#### arrMin

配列の要素の最小値を返します。

追加の引数: なし

この変換は、次の場合に `null` を返します:

* 入力が配列ではない
* 配列が空である
* 配列に数値以外の項目が含まれている

例 (コンテキスト `{"c": [1, 5]}`):

```
c|arrMin
```

結果in

```
1
```

<a name="arrMed"></a>

#### arrMed

配列の要素の中央値を返します。

追加引数: なし

この変換は、次の場合に `null` を返します:

* 入力が配列ではない
* 配列が空である
* 配列に数値以外の項目が含まれている

例 (コンテキスト `{"c": [1, 3, 3, 6, 7, 8, 9]}`):

```
c|arrMed
```

結果は

```
6
```

例 (コンテキスト `{"c": [1, 2, 3, 4, 5, 6, 8, 9]}`):

```
c|arrMed
```

結果は

```
4.5
```

<a name="arrSort"></a>

#### arrSort

入力として使用された配列のソートされたバージョンを返します。

追加の引数: なし

この変換は、次の場合に `null` を返します:

* 入力が配列ではない
* 配列に数値以外の項目が含まれている

例 (コンテキスト `{"c": [3, 1, 3, 9, 7, 8, 6]}`):

```
c|arrSort
```

結果は次のようになります

```
[1, 3, 3, 6, 7, 8, 9]
```

<a name="arrReverse"></a>

#### arrReverse

入力として使用される配列の予約バージョンを返します。

追加の引数: なし

この変換は、次の場合に `null` を返します:

* 入力が配列ではない

例 (コンテキスト `{"c": [3, 1, 3, 9, 7, 8, 6]}`):

```
c|arrReverse
```

結果は

```
[6, 8, 7, 9, 3, 1, 3]
```

<a name="now"></a>

#### now
Expand Down
12 changes: 6 additions & 6 deletions doc/manuals/orion-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3168,7 +3168,7 @@ This transformation will return `null` in the following cases:

* The input is not an array
* The array is empty
* The array containts some non numeric item
* The array contains some non numeric item

Example (being context `{"c": [1, 5]}`):

Expand All @@ -3192,7 +3192,7 @@ This transformation will return `null` in the following cases:

* The input is not an array
* The array is empty
* The array containts some non numeric item
* The array contains some non numeric item

Example (being context `{"c": [1, 5]}`):

Expand All @@ -3216,7 +3216,7 @@ This transformation will return `null` in the following cases:

* The input is not an array
* The array is empty
* The array containts some non numeric item
* The array contains some non numeric item

Example (being context `{"c": [1, 5]}`):

Expand All @@ -3240,7 +3240,7 @@ This transformation will return `null` in the following cases:

* The input is not an array
* The array is empty
* The array containts some non numeric item
* The array contains some non numeric item

Example (being context `{"c": [1, 5]}`):

Expand All @@ -3264,7 +3264,7 @@ This transformation will return `null` in the following cases:

* The input is not an array
* The array is empty
* The array containts some non numeric item
* The array contains some non numeric item

Example (being context `{"c": [1, 3, 3, 6, 7, 8, 9]}`):

Expand Down Expand Up @@ -3299,7 +3299,7 @@ Extra arguments: none
This transformation will return `null` in the following cases:

* The input is not an array
* The array containts some non numeric item
* The array contains some non numeric item

Example (being context `{"c": [3, 1, 3, 9, 7, 8, 6]}`):

Expand Down

0 comments on commit c1ee847

Please sign in to comment.