stdlib: Make stdlib not error out w/ undefined symbols, add ranges.

This commit is contained in:
2025-02-23 03:29:15 -06:00
parent 4d9b13f7a1
commit 5c99bf09ab
3 changed files with 17 additions and 6 deletions

9
stdlib/std/range.cl Normal file
View File

@@ -0,0 +1,9 @@
//! Iterable ranges
/// An Exclusive Range `a .. b` iterates from a to b, excluding b
#[intrinsic = "range_exc", T]
struct RangeExc(T, T)
/// An Inclusive Range `a ..= b` iterates from a to b, including b
#[intrinsic = "range_inc", T]
struct RangeInc(T, T)