[−][src]Crate repay
CLI documentation
Example usage:
$ cargo install repay
$ repay <<HERE
a 150
b 300
c 100 c a
HERE
c owes b 100.00
a owes b 50.00
Library documentation
Example usage:
extern crate repay; let input = "a 150 b 300 c 100 c a"; let result = repay::run(input.lines().map(str::to_owned)); assert_eq!(2, result.len()); assert_eq!("c owes b 100.00", format!("{}", result[0])); assert_eq!("a owes b 50.00", format!("{}", result[1]));
Structs
Debt |
Functions
run |