use Vec::from_fn to build test data
update in prep for new range syntax