value · System
SpanIterator<T>
public value SpanIterator<T>
The elements of a span, in order.
- Kind
- value
- Namespace
- System
- Assembly
- System.Core
- Access
- public
- Source file
Span.ant
Type parameters
| Name | Constraints |
|---|---|
T | any type |
Constructors
Properties
T Current { get; }
#
Methods
Source
SpanIterator<T> as Antril, decompiled from its Larva HIR.
// System.SpanIterator — System.Core (decompiled from Larva HIR)
into namespace System
{
/// The elements of a span, in order.
public value SpanIterator<T>
{
Span<T> span;
i32 index;
public:
new(Span<T> span)
{
this.span = span;
index = -1;
}
Next() : bool
{
index++;
return index < span.Length;
}
T Current
{
get => span[index];
}
}
}