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 has been archived by the owner on Aug 6, 2018. It is now read-only.
Am using T, S, R as arbitrary type variables.
Here let the type of result from line 1 is Tuple2(T, Monoid), so result._2 is a Monoid, t is of type Tuple2(S, Monoid), so t._2 is a Monoid, both got by run()ning the monad constructor. In line 3 the 2nd part of the tuple is result._2.concat(t._2), which translates to type Monoid.concat(Monoid). I feel something's not right here, right now am using js Array which kind of is easy in that it doesn't care if I concat an array of an element or the element itself, the result is the same. Is there something amiss here?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Am here refering to the chain method in
fantasy-writers/src/writer.js
Lines 17 to 23 in da0e141
Am using
T, S, R
as arbitrary type variables.Here let the type of
result
from line 1 isTuple2(T, Monoid)
, soresult._2
is a Monoid,t
is of typeTuple2(S, Monoid)
, sot._2
is a Monoid, both got byrun()
ning the monad constructor. In line 3 the 2nd part of the tuple isresult._2.concat(t._2)
, which translates to typeMonoid.concat(Monoid)
. I feel something's not right here, right now am using jsArray
which kind of is easy in that it doesn't care if I concat an array of an element or the element itself, the result is the same. Is there something amiss here?The text was updated successfully, but these errors were encountered: