occurrence method
Gets the nth occurrence (0-indexed).
Implementation
Hora? occurrence(int n) {
if (n < 0) return null;
var current = start;
for (var i = 0; i < n; i++) {
final next = this.next(current);
if (next == null) return null;
current = next;
}
return current;
}