core-logic

2020-11-23T19:29:45.019200Z

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)

2020-11-23T19:29:56.019500Z

Is this even possible in core.logic?

2020-11-23T23:05:48.020Z

You can't

2020-11-23T23:06:28.021100Z

(define a relation like that)

2020-11-23T23:07:27.022200Z

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