소스 검색

refactor

master
Victor Fors 2 년 전
부모
커밋
dc5aaa7e08
1개의 변경된 파일7개의 추가작업 그리고 5개의 파일을 삭제
  1. +7
    -5
      parking.scm

+ 7
- 5
parking.scm 파일 보기

@@ -17,6 +17,13 @@
(array . ,identity)
(null . ,(constantly '()))) (json-parsers)))

;; The resultant type definition for the above parser rules.
(define-type json *)
(define-type json
(or string boolean number float null
(list-of json)
(list-of (pair symbol json))))

(: curry (procedure * --> procedure))
(define (curry fn a)
(lambda (b)
@@ -94,11 +101,6 @@
(apply string-append
(map (curry2 upon symbol? (compose ->string (curry (flip value) ln))) statement)))

(define-type json *)
(define-type json
(or string boolean number float null
(list-of json)
(list-of (pair symbol json))))

;;; Get data from a uri and parse it as json.
(: simple-json-request (string -> json))


불러오는 중...
취소
저장