Skip to content

Commit

Permalink
add hexdigit
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Sevilla committed Dec 5, 2014
1 parent 23d4cc5 commit 9f7f29b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arc/bootstrap.arc
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,6 @@
;; Uses Racket's string->number
(def string->num (s (o radix 10))
($ (let ((n (string->number s radix))) (if n n 'nil))))

;; Strange that this was omitted
(def hexdigit (c) (or (digit c) (<= #\a c #\f) (<= #\A c #\F)))

0 comments on commit 9f7f29b

Please sign in to comment.