stdlib: Make stdlib not error out w/ undefined symbols, add ranges.
This commit is contained in:
9
stdlib/std/range.cl
Normal file
9
stdlib/std/range.cl
Normal 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)
|
||||
Reference in New Issue
Block a user