use char->number from common in day 5

This commit is contained in:
2021-12-11 20:19:34 +01:00
parent 98336be2d7
commit bdc9004df6

View File

@@ -1,8 +1,5 @@
(import (srfi :43)) ; vector extensions
; returns numbers 0 to 9 from ascii character
(define (char->number c)
(- (char->integer c) 48)) ; 48 is ASCII's number zero
(load "../common.scm")
; reads a numnber from input
; also consumes the next non-number character in the file!