Not sure if this is on purpose or an oversight: for_range currently only takes a range of i32 instead of allowing any range of ScalarTypeInteger like the for_range_impl below
|
pub fn for_range(range: impl VecRange<i32, x1>, body: impl FnOnce(i32x1) + FlowFn) { for_range_impl(range, body); } |
|
|
|
#[track_caller] |
|
pub(crate) fn for_range_impl<T: ScalarTypeInteger>( |
|
range: impl VecRange<T, x1>, |
|
body: impl FnOnce(vec<T, x1>) + FlowFn, |
|
) { |
Not sure if this is on purpose or an oversight:
for_rangecurrently only takes a range ofi32instead of allowing any range ofScalarTypeIntegerlike thefor_range_implbelowshame/shame/src/frontend/encoding/flow.rs
Lines 171 to 177 in 4beb307