(state: State)
| 175 | } |
| 176 | |
| 177 | function processCursorRight(state: State) { |
| 178 | const nextPart = state.dateParts[state.cursor].nextPart() |
| 179 | return Option.match(nextPart, { |
| 180 | onNone: () => Action.Beep(), |
| 181 | onSome: (next) => |
| 182 | Action.NextFrame({ |
| 183 | state: { |
| 184 | ...state, |
| 185 | typed: "", |
| 186 | cursor: state.dateParts.indexOf(next) |
| 187 | } |
| 188 | }) |
| 189 | }) |
| 190 | } |
| 191 | |
| 192 | function processNext(state: State) { |
| 193 | const nextPart = state.dateParts[state.cursor].nextPart() |
no outgoing calls
no test coverage detected
searching dependent graphs…