mirror of
https://github.com/uutils/coreutils
synced 2024-12-18 09:03:14 +00:00
cf93826eee
This allows us to check files without bringing them entirely into memory. Also makes it easier to find the disorder in (seq 9; echo 0) | sort --check (points at the end of the file, where our previous version would point at the start of the file) Itertools' .coalesce() was the most useful helper that I could find for comparing adjacent values in an iterator. It is designed for implementing things like .dedup(), so the resulting code is a little unintuitive. |
||
---|---|---|
.. | ||
Cargo.toml | ||
main.rs | ||
sort.rs |