Join Slack
Powered by
many things are semigroupal: numbers, collections,...
# arrow
p
pakoito
08/06/2019, 8:19 PM
many things are semigroupal: numbers, collections, strings, functions, even rx.Observable is semigroupal
r
rcd27
08/07/2019, 8:16 AM
What about numbers: there
is
"zero" object there. 1 + 0 = 1(identity object)
rcd27
08/07/2019, 8:18 AM
The same for [1,2,3] + [] ; "abc" + ""
p
pakoito
08/07/2019, 9:57 AM
many semigroups are also monoids, yes 😄
pakoito
08/07/2019, 9:57 AM
Observable.empty()
pakoito
08/07/2019, 9:58 AM
the identity function
i
Imran/Malic
08/07/2019, 10:45 AM
In fact semigroup is a superset of monoids:
@rcd27
check this out
https://blog.ploeh.dk/2017/11/27/semigroups/
r
rcd27
08/07/2019, 10:46 AM
I'll check it out, thanks
4
Views
Open in Slack
Previous
Next