alios on Nostr: How do you abstract Monoid like behaviour in #rustlang ? Use one of those crates ...
How do you abstract Monoid like behaviour in #rustlang ? Use one of those crates which provide a Monoid/Semigroup trait (which?)? Or is there something in core or std which has the same semantics but a different name (maybe just "miss?use" Add trait) #rust #fp
Published at
2024-04-25 14:36:49Event JSON
{
"id": "f1495555bffcd145980d0fb4d9e57f18cfa5370c3c43847b0dcb233222c4ab21",
"pubkey": "9c51a993b54e016011533dcc3b4395517ed11cb5f53cb71a657fd42ceb9cbd51",
"created_at": 1714055809,
"kind": 1,
"tags": [
[
"t",
"rustlang"
],
[
"t",
"rust"
],
[
"t",
"fp"
],
[
"proxy",
"https://chaos.social/users/alios/statuses/112332361539673029",
"activitypub"
]
],
"content": "How do you abstract Monoid like behaviour in #rustlang ? Use one of those crates which provide a Monoid/Semigroup trait (which?)? Or is there something in core or std which has the same semantics but a different name (maybe just \"miss?use\" Add trait) #rust #fp",
"sig": "2914bfbbb59f222e7955093aedf8c0b8476caa5f51ff73fb183658d79564286c27ed1daceb8c5dacac3b4cdaee2c92597c21e6f78fcc073813edb5022ac782f6"
}