Skip to content

for_range should accept any ScalarTypeInteger #34

Description

@chronicl

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,
) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions