Created
December 13, 2013 14:56
-
-
Save faassen/7945477 to your computer and use it in GitHub Desktop.
nimrod noob assignment questions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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