Commit Graph

55 Commits

Author SHA1 Message Date
Johannes
b89e4f4929 day02 both 2018-12-02 09:17:23 +01:00
Johannes
a0509342ae day01-2 use scan with tuple expansion
The previous problem with this was, that I tried returning
"Some((Ref<i32>, _))" from the lambda. That caused the compiler to complain
about the lifetime of the `current` value, since I tried passing on the Ref
instead of the encapsulated value.
2018-12-01 18:19:07 +01:00
Johannes
0494dee19d day01-2 tuple 2018-12-01 17:54:30 +01:00
Johannes
2d64eefc09 day01 redone in a more functional way
in task2, RefCell is used since the passed state in 'scan' seems to be
immutable, although it shouldn't.
2018-12-01 15:13:16 +01:00
Johannes
cebb80763a day01 both 2018-12-01 10:03:12 +01:00