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
@@ -40,7 +40,7 @@ class CallAlgebra<Customer, Agent, Call> {
40
40
}
41
41
```
42
42
43
-
As you see we are keeping our algebra pure and monadic, so we are able to chain our methods to build larger and more complex logic. For this example we are using funfix/effects but any IO implementation that support sync and async execution should work.
43
+
As you see, we are keeping our algebra pure and monadic, so we are able to chain our methods to build larger and more complex logic. For this example we are using funfix/effects but any IO implementation that supports sync and async execution should work.
44
44
45
45
```typescript
46
46
classCallAlgebra<Customer, Agent, Call> {
@@ -61,13 +61,13 @@ class CallAlgebra<Customer, Agent, Call> {
61
61
}
62
62
```
63
63
64
-
Now we have every piece to build our algebra, try play with this idea a bit and then we can move to the next step.
64
+
Now we have every piece needed to build our algebra. Try to play with this idea a bit and then we can move on to the next step.
65
65
66
66
## 2. Provide a definition for the algebra
67
67
68
-
Now that we have an algebra we are ready to create an implementation for it (in FP word its called interpreter)
68
+
Now that we have an algebra, we are ready to create an implementation for it (in FP word its called interpreter).
69
69
70
-
It is made of 2 sub steps. First we need to define our types for our algebras params and then we need to pass our methods implementation:
70
+
It is made of 2 substeps. First we need to define types for the params of our algebra and then we need to pass the implementation of our methods:
As you see the reducer name starts with `io` this is a must because with this we can detect which reducers
175
-
should are IO monads. Also it is important to mention that its actions should have a field target:
174
+
As you see, the reducer name starts with `io`. This is a must because with this we can detect which reducers are IO monads. Also, it is important to mention that its actions should have a field `target`:
0 commit comments