瀏覽代碼

refactoring

master
Victor Fors 2 年之前
父節點
當前提交
9d133bc70f
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      parking.scm

+ 3
- 3
parking.scm 查看文件

@@ -72,8 +72,8 @@
(cons (string->symbol (string-downcase k)) v)))
(array . ,identity)) (json-parsers)))
(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)))
(filter (conjoin computerized? (complement only-has-handicap-spots?)) lots))))
(map (compose display-newline (curry format-assoc '(name ": " parkingspacesavailable "/" parkingspaces)))
(filter (conjoin computerized? (complement only-has-handicap-spots?))
(sort-via string-ci<? (curry value 'name) (get-parking-lots)))))

(main)

Loading…
取消
儲存