maarten van damme:

I have no idea what is wrong with my code and the error is not very informative.

As first step I suggest to add a space after commas, before brackets, around operators, etc. The improved readability helps spot the bugs.

Adding Contracts and other asserts sometimes helps. Adding some unit tests sometimes helps.

Bye,
bearophile

Reply via email to