refactoring
This commit is contained in:
parent
dbad99dd34
commit
9d133bc70f
@ -72,8 +72,8 @@
|
|||||||
(cons (string->symbol (string-downcase k)) v)))
|
(cons (string->symbol (string-downcase k)) v)))
|
||||||
(array . ,identity)) (json-parsers)))
|
(array . ,identity)) (json-parsers)))
|
||||||
(display-newline "Parking spaces available:")
|
(display-newline "Parking spaces available:")
|
||||||
(let ((lots (sort-via string-ci<? (curry value 'name) (get-parking-lots))))
|
(map (compose display-newline (curry format-assoc '(name ": " parkingspacesavailable "/" parkingspaces)))
|
||||||
(map (compose display-newline (curry format-assoc '(name ": " parkingspacesavailable "/" parkingspaces)))
|
(filter (conjoin computerized? (complement only-has-handicap-spots?))
|
||||||
(filter (conjoin computerized? (complement only-has-handicap-spots?)) lots))))
|
(sort-via string-ci<? (curry value 'name) (get-parking-lots)))))
|
||||||
|
|
||||||
(main)
|
(main)
|
||||||
|
Loading…
Reference in New Issue
Block a user