char list list -> bool

烂漫一生 提交于 2019-12-12 01:34:26

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!