Fork me on GitHub
#core-logic
<
2020-11-23
>
chrisblom19:11:45

i have two functions that are inverses of each other (`parse-instant` and format-instant), can i define a relation (instanto string instant) such that: providing string will bind instant to (parse-instant string) and providing instant will bind string to (format-instant instant)

chrisblom19:11:56

Is this even possible in core.logic?

hiredman23:11:28

(define a relation like that)

hiredman23:11:27

You maybe be able to build a constraint out of that(like fd/+)