Dropping elements left and right: fun with ruby arrays
Exploring ways of dropping elements from arrays: a look at Array#drop_while
, implementing and benchmarking a counterpart Array#drop_while_right
. More of an experiment and an excuse to play with refinements and benchmark-ips
then something that would be used in production code :)
Post a comment