if that "split(',')" is from strutils, it returns seq[string], not tuple. I
guess you need to use something like this:
for line in readFile(day02PathAndName):
var data = line.split(',')
if data.len() == 2:
myKey = data[0]
myValue = data[1]
result...
else:
echo "Error in input: ", line
Run
- Newbie question: Why am I getting the too many variables error ... freeflow
- Re: Newbie question: Why am I getting the too many variabl... sky_khan
