Now time to make sudoku

This commit is contained in:
2025-10-14 11:25:20 +02:00
parent bdb3b8c5b4
commit cedcd63214
2 changed files with 13 additions and 10 deletions

13
sudoku.lispbm Normal file
View File

@ -0,0 +1,13 @@
(define nums '(1 2 3 4 5 6 7 8 9))
(define valid
(lambda (x)
(foldr
(lambda (y z)
(match (filter (lambda (q) (= q y)) nums)
(((? r) . nil) (match (filter (lambda (q) (= r q)) x)
(((? _)) z)
(_ nil)))
(_ nil)))
t
x)))