diff options
Diffstat (limited to 'aoc-2020-gleam/src/ext/intx.gleam')
-rw-r--r-- | aoc-2020-gleam/src/ext/intx.gleam | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/aoc-2020-gleam/src/ext/intx.gleam b/aoc-2020-gleam/src/ext/intx.gleam new file mode 100644 index 0000000..9f06850 --- /dev/null +++ b/aoc-2020-gleam/src/ext/intx.gleam @@ -0,0 +1,3 @@ +pub fn is_between(number: Int, min: Int, and max: Int) { + min <= number && number <= max +} |