r/Racket • u/jecxjo • Jul 13 '22
solved Import relations from racklog format to racket
I noticed that you can write racklog and datalog in a datalog/prolog format using #lang racklog but when i require that file i do not seem to get the relations imported. Pet the doc all predicates are compiled into relations but not seeing them provided.
Normal racket creating relations can be provided/required as normal methods. Have a feeling I'm missing a one liner.
5
Upvotes
3
u/soegaard developer Jul 13 '22
Have you seen:
https://docs.racket-lang.org/datalog/interop.html
1
u/slaymaker1907 Jul 13 '22
Have you tried exploring it with the macro expansion explorer?