Firstly, apologies for how obvious these two questions seem to be; I\'m very very new to this and don\'t have a clue what I\'m doing.
I\'m trying to write something to a
Int's don't have a min() function but min() is a builtin function. You'll need to use min(x).