(no title)
verdagon | 1 year ago
1. drop_into(list, func): It consumes the list, calling the given `func` for each element.
2. expect_empty(list): Consumes the list, panicking if the list isn't empty.
verdagon | 1 year ago
1. drop_into(list, func): It consumes the list, calling the given `func` for each element.
2. expect_empty(list): Consumes the list, panicking if the list isn't empty.
fallingsquirrel|1 year ago
If you want to discourage runtime checks, you could even make the programmer do the above themselves since it's a one-liner anyway.
two_handfuls|1 year ago
lmm|1 year ago