mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-27 19:58:55 -06:00
generalize the nqueens function in NQueens.gf
This commit is contained in:
@@ -3,7 +3,7 @@ concrete NQueensAscii of NQueens = NatAscii ** {
|
||||
lincat S, Matrix, Vec = Str ;
|
||||
ListNat, Sat = {} ;
|
||||
|
||||
lin queens m = m ;
|
||||
lin nqueens _ m = m ;
|
||||
|
||||
lin nilV _ _ = "" ;
|
||||
consV _ j k _ _ v = j ++ "X" ++ k ++ ";" ++ v ;
|
||||
|
||||
Reference in New Issue
Block a user