问题
Does anyone know how to declare a function
rscheck : char list list -> bool
, that checks, if the number 1-9 are used once in every row and every list... so it returns true?
like in a sudoku game..
Thnx.
回答1:
It could be done like this (also there is a better way for sure, just some training for me):
http://pastebin.com/ViJM48LV
来源:https://stackoverflow.com/questions/3949072/char-list-list-bool