forked from GitHub/gf-core
the NQueens algorithm written in GF
This commit is contained in:
15
examples/nqueens/NatAscii.gf
Normal file
15
examples/nqueens/NatAscii.gf
Normal file
@@ -0,0 +1,15 @@
|
||||
concrete NatAscii of Nat = {
|
||||
|
||||
lincat Nat = Str ;
|
||||
|
||||
lin zero = "" ;
|
||||
succ n = "_" ++ n ;
|
||||
|
||||
lincat LT = Str ;
|
||||
NE = {} ;
|
||||
Plus = {} ;
|
||||
|
||||
lin zLT n = n ;
|
||||
sLT _ _ l = l ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user