You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 5, 2025. It is now read-only.
In addition to the general functions described here, there are some functions that are conventionally defined as part of the API of in the namespace of each collection type:
28
29
* `mapM` maps a monadic function.
29
30
* `forM` maps a monadic function, throwing away the result.
30
31
* `filterM` filters using a monadic predicate, returning the values that satisfy it.
31
32
32
33
33
-
::::example"Monadic Collection Operations"
34
+
:::
35
+
36
+
ここで説明する一般的な関数に加えて、各コレクション型の名前空間の API の一部として慣習的に定義されている関数がいくつかあります:
37
+
* `mapM` はモナド関数をマップします。
38
+
* `forM` はモナド関数をマップし、結果を捨てます。
39
+
* `filterM` はモナド述語を使ってフィルタリングを行い、それを満たす値を返します。
40
+
41
+
:::comment
42
+
::example"Monadic Collection Operations"
43
+
:::
44
+
::::example"モナドのコレクションに対する操作"
45
+
:::comment
34
46
{name}`Array.filterM` can be used to write a filter that depends on a side effect.
0 commit comments