(state: State)
| 145 | } |
| 146 | |
| 147 | function processBackspace(state: State) { |
| 148 | if (state.value.length <= 0) { |
| 149 | return Effect.succeed(Action.Beep()) |
| 150 | } |
| 151 | const value = state.value.slice(0, state.value.length - 1) |
| 152 | return Effect.succeed(Action.NextFrame({ |
| 153 | state: { ...state, value, error: Option.none() } |
| 154 | })) |
| 155 | } |
| 156 | |
| 157 | function defaultIntProcessor(state: State, input: string) { |
| 158 | if (state.value.length === 0 && input === "-") { |
no outgoing calls
no test coverage detected
searching dependent graphs…