2d/2d-lib/dir-chars.rkt
2015-09-07 17:47:55 -05:00

45 lines
729 B
Racket

#lang racket/base
(require racket/list)
(provide adjustable-chars
double-barred-chars
up-chars
dn-chars
lt-chars
rt-chars)
(define up-chars
'(#\╬
#\╩ #\╣ #\╠
#\╝ #\╚
#\║
#\+ #\|))
(define dn-chars
'(#\╬
#\╦ #\╣ #\╠
#\╗ #\╔
#\║
#\+ #\|))
(define lt-chars
'(#\╬
#\╩ #\╦ #\╣
#\╝ #\╗
#\═
#\+ #\- #\=))
(define rt-chars
'(#\╬
#\╩ #\╦ #\╠
#\╔ #\╚
#\═
#\+ #\- #\=))
(define adjustable-chars
(remove-duplicates
(append up-chars dn-chars lt-chars rt-chars)))
(define double-barred-chars
(remove* '(#\+ #\- #\= #\|)
adjustable-chars))