Skip to content

Instantly share code, notes, and snippets.

@jrfondren
Created May 13, 2019 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrfondren/d67c36d89d903f981f18181aeff61b0f to your computer and use it in GitHub Desktop.
Save jrfondren/d67c36d89d903f981f18181aeff61b0f to your computer and use it in GitHub Desktop.
type
Serial = object
prefix: array[0..2, range['A'..'Z']]
digits: array[0..4, range[0..9]]
var x = Serial(prefix: [range['A'..'Z']('A'), 'B', 'X'], digits: [range[0..9](1), 1, 1, 2, 3])
echo x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment