mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 17:46:40 +03:00
11 lines
236 B
Plaintext
11 lines
236 B
Plaintext
// Checks if a character is within a specified range, inclusive.
|
|
Char.is_between
|
|
: ∀(min: Char)
|
|
∀(max: Char)
|
|
∀(chr: Char)
|
|
Bool
|
|
= λmin λmax λchr
|
|
(Bool.and
|
|
(U60.to_bool #(>= chr min))
|
|
(U60.to_bool #(<= chr max)))
|