Untitled
type Dir = enum UP DOWN LEFT RIGHT
const NUMS = [UP: 1, DOWN: 2, LEFT: 3, RIGHT: 4]
echo NUMS[UP]
# Error: type mismatch: got (array[0..3, int], Dir) but ...INFO
type Dir = enum UP DOWN LEFT RIGHT
const NUMS = [UP: 1, DOWN: 2, LEFT: 3, RIGHT: 4]
echo NUMS[UP]
# Error: type mismatch: got (array[0..3, int], Dir) but ...