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
Copy file name to clipboardExpand all lines: doc/category.md
+11
Original file line number
Diff line number
Diff line change
@@ -111,6 +111,17 @@ f(X, Y, R) ->
111
111
112
112
The usage of intermediate state do not benefit for chains of ordinary functions. Unfortunately, we can't express all of our programs as chains of ordinary functions. Later' we will demonstrate the benefit of intermediate states for computation with a side-effect.
113
113
114
+
Note: the state syntax supports a traditional pattern matching but it is not available for identity and undefined categories yet.
115
+
116
+
> In a pattern matching, a left-hand side pattern is matched against a right-hand side term. If the matching succeeds, any unbound variables in the pattern become bound. If the matching fails, a run-time error occurs.
0 commit comments