Tuesday, October 25, 2022

Rust pop-quiz: `split_asset`

Rust pop quiz.

Yes, I'm on fire tonight. 🔥🔥🔥

For the Asset struct we have the monoid* operation, merge_asset


create the dual to that: split_asset, that removes some or all of an asset AND adjusts price.

*precisely, the semigroupoid operation

No comments:

Post a Comment