Crate bilk

Source
Expand description

§Bilk

Miscellaneous functions and traits for personal use. Most are implemented after attempting a leetcode problem where I would find some utility function useful.

Structs§

Counter
Tally occurrences using .collect::<Counter>()

Traits§

Captures
Help with the trait bound problem described here (video).
CumSum
Calculate the cumulative sum of an iterator
IntoCounter
Tally the occurrences of elements in an iterator

Functions§

counting_sort
counting sort using stack allocated array
lift
lift a function up to be applied on options
neighbors
returns an iterator of adjacent tuples (row, column)