|
|
@ -461,27 +461,20 @@ |
|
|
|
(compose (list |
|
|
|
(compose (list |
|
|
|
;; for list of map lines (within a single map set) |
|
|
|
;; for list of map lines (within a single map set) |
|
|
|
(prepend '(0 4294967295 0)) |
|
|
|
(prepend '(0 4294967295 0)) |
|
|
|
(map (compose (list |
|
|
|
(map create-map) |
|
|
|
;; for map line |
|
|
|
(map (map string->number)) |
|
|
|
create-map |
|
|
|
(map (map list->string)) |
|
|
|
(map (compose (list |
|
|
|
(map (split (is #\space))) |
|
|
|
;; for number in map line |
|
|
|
(map string->list) |
|
|
|
string->number |
|
|
|
|
|
|
|
list->string))) |
|
|
|
|
|
|
|
(split (is #\space)) |
|
|
|
|
|
|
|
string->list |
|
|
|
|
|
|
|
))) |
|
|
|
|
|
|
|
cdr))) |
|
|
|
cdr))) |
|
|
|
|
|
|
|
|
|
|
|
(define parse-initial |
|
|
|
(define parse-initial |
|
|
|
(compose (list |
|
|
|
(compose (list |
|
|
|
(map (compose (list |
|
|
|
(map create-state-value-current) |
|
|
|
create-state-value-current |
|
|
|
(map create-range-from-input) |
|
|
|
create-range-from-input))) |
|
|
|
|
|
|
|
(chunks 2) |
|
|
|
(chunks 2) |
|
|
|
(map (compose (list |
|
|
|
(map string->number) |
|
|
|
string->number |
|
|
|
(map list->string) |
|
|
|
list->string))) |
|
|
|
|
|
|
|
cdr |
|
|
|
cdr |
|
|
|
(split (is #\space)) |
|
|
|
(split (is #\space)) |
|
|
|
string->list))) |
|
|
|
string->list))) |
|
|
|