This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| projects:split-bill [2024/07/28 11:42] – created pfm | projects:split-bill [2024/07/28 20:56] (current) – add Itertools::permutations pfm | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Split-Bill ====== | ====== Split-Bill ====== | ||
| - | This is a command-line expense-sharing utility written in [[rust-lang.org/ | + | This is a command-line expense-sharing utility written in [[rust-lang.org/ |
| Repository: [[https:// | Repository: [[https:// | ||
| + | |||
| + | ===== Example ===== | ||
| + | |||
| + | < | ||
| + | $ ./ | ||
| + | Expenses: | ||
| + | - john: 10 | ||
| + | - jane: 15 | ||
| + | - luke: 0 | ||
| + | - margaret: 0 | ||
| + | - dude: 5 | ||
| + | john Gets(4.0) | ||
| + | jane Gets(9.0) | ||
| + | luke Pays(6.0) | ||
| + | margaret Pays(6.0) | ||
| + | dude Pays(1.0) | ||
| + | </ | ||
| ===== Ideas ===== | ===== Ideas ===== | ||
| Line 10: | Line 27: | ||
| * Use a reasonable type to represent amounts --- '' | * Use a reasonable type to represent amounts --- '' | ||
| * Extract expense calculation code to a Rust library and then use it in the CLI tool, to be able to then write other applications (GUI maybe?). | * Extract expense calculation code to a Rust library and then use it in the CLI tool, to be able to then write other applications (GUI maybe?). | ||
| + | * Use [[https:// | ||