Remove unused library functions.
This commit is contained in:
parent
044d2def4b
commit
a263f25774
19
lib.rkt
19
lib.rkt
|
@ -1,7 +1,8 @@
|
||||||
|
|
||||||
#lang racket
|
#lang racket
|
||||||
|
|
||||||
(require
|
(require
|
||||||
|
curly-fn
|
||||||
|
threading
|
||||||
(only-in data/queue
|
(only-in data/queue
|
||||||
make-queue
|
make-queue
|
||||||
enqueue!)
|
enqueue!)
|
||||||
|
@ -9,7 +10,10 @@
|
||||||
read-lines
|
read-lines
|
||||||
read-file))
|
read-file))
|
||||||
|
|
||||||
(provide problem-input
|
(provide (all-from-out curly-fn
|
||||||
|
threading)
|
||||||
|
|
||||||
|
problem-input
|
||||||
problem-input-all
|
problem-input-all
|
||||||
problem-input-grouped
|
problem-input-grouped
|
||||||
show-solution
|
show-solution
|
||||||
|
@ -25,8 +29,6 @@
|
||||||
|
|
||||||
∘ ∂ ∂r $ %
|
∘ ∂ ∂r $ %
|
||||||
uncurry
|
uncurry
|
||||||
apply*
|
|
||||||
apply-when
|
|
||||||
|
|
||||||
string->number*
|
string->number*
|
||||||
string->symbol*
|
string->symbol*
|
||||||
|
@ -70,15 +72,6 @@
|
||||||
(curry apply))
|
(curry apply))
|
||||||
(define $ uncurry)
|
(define $ uncurry)
|
||||||
|
|
||||||
;; apply* : (a -> b) -> a -> b
|
|
||||||
(define (apply* f a)
|
|
||||||
(f a))
|
|
||||||
|
|
||||||
;; apply-when : a -> (a -> b) -> b
|
|
||||||
;; Apply given function only when a is not #f; return #f otherwise
|
|
||||||
(define (apply-when p f)
|
|
||||||
(and p (f p)))
|
|
||||||
|
|
||||||
|
|
||||||
;; IO helpers ;;
|
;; IO helpers ;;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue