many things are semigroupal: numbers, collections,...
# arrow
p
many things are semigroupal: numbers, collections, strings, functions, even rx.Observable is semigroupal
r
What about numbers: there is "zero" object there. 1 + 0 = 1(identity object)
The same for [1,2,3] + [] ; "abc" + ""
p
many semigroups are also monoids, yes 😄
Observable.empty()
the identity function
i
In fact semigroup is a superset of monoids: @rcd27 check this out https://blog.ploeh.dk/2017/11/27/semigroups/
r
I'll check it out, thanks