Basic conversion function.
Ulitity to build a list of indices along a stridden dimension.