On Wednesday, 4 October 2023 at 08:11:12 UTC, Joel wrote:
What am I missing?
Splitter returns a forward range so you can't slice the result.
You can use take() and drop() instead. Also, converting a string
range to int[] doesn't seem to work, but I don't know if it
should. Here is a version
What am I missing?
```d
import std;
void main() {
struct DateRem {
Date date;
string rem;
string toString() const => text(date.toSimpleString, " ",
rem);
}
DateRem[] daterem;
data
.splitter('\n')
.filter!(l => l.length && l[0].isDigit)