Skip to content

Instantly share code, notes, and snippets.

@faassen
Created December 13, 2013 14:56
Show Gist options
  • Save faassen/7945477 to your computer and use it in GitHub Desktop.
Save faassen/7945477 to your computer and use it in GitHub Desktop.
nimrod noob assignment questions
type
TField = object
height: float
other: float
TRow = array[0..100, TField]
TWorld* = tuple
grid: array[0..100, TRow]
proc init*(world: var TWorld, value: float) =
for row in world.grid:
for field in row:
field.height = value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment