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
The parameter order in the set parameter of Binding.twoWay differs from the parameter order of the function accepted by Binding.mapMsgWithModel.
IIRC, one advantage of the order within Binding.mapMsgWithModel is that it matches what would be needed for that function to be the bind function if Binding<'model, 'msg> were a monad in 'msg (like how 'a -> 'b is a monad in 'b).
The text was updated successfully, but these errors were encountered:
IIRC, one advantage of the order within Binding.mapMsgWithModel is that it matches what would be needed for that function to be the bind function if Binding<'model, 'msg> were a monad in 'msg (like how 'a -> 'b is a monad in 'b).
Nope, I got that backwards; the functions in TwoWayBinding have that advantage.
The parameter order in the
set
parameter ofBinding.twoWay
differs from the parameter order of the function accepted byBinding.mapMsgWithModel
.IIRC, one advantage of the order within
Binding.mapMsgWithModel
is that it matches what would be needed for that function to be thebind
function ifBinding<'model, 'msg>
were a monad in'msg
(like how'a -> 'b
is a monad in'b
).The text was updated successfully, but these errors were encountered: