Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mettalog doesnt evaluate with nested match #216

Open
drspro opened this issue Dec 10, 2024 · 0 comments
Open

mettalog doesnt evaluate with nested match #216

drspro opened this issue Dec 10, 2024 · 0 comments

Comments

@drspro
Copy link
Collaborator

drspro commented Dec 10, 2024

; probably collapse add
; (sudoku_board 9 7 9 7 )
; (sudoku_puzzle_state 1 1 5 )

(= (sudoku_quad_num $rowx $colx)
(match &self ( sudoku_board $rowx $colx $quadn $nothing )
$quadn ) )

(= (get_quad_stateyz $quadn)
(match &self ( sudoku_puzzle_state $row $colx $state ) (
(if (and (> $state 0) (== (sudoku_quad_num $row $colx) $quadn ) )
(cell_xstate $row $colx $state)
(empty)
) ) )
)
qwe_Image6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant