1

Is it possible to gainfully use core.logic from Java code? If so, would greatly appreciate a simple example. If not, could someone point to a pure-Java alternative?

kongeor
  • 712
  • 1
  • 6
  • 14
Don
  • 1,151
  • 9
  • 19

1 Answers1

1

You can call clojure code directly from java and you can check the link Alan Thomspon suggested in the comments, but I'm not sure if it will be very convenient to work with (I guess it will not).

Alternatively, as described on the core.logic github repo:

At its heart is an original implementation of miniKanren

On the miniKanren implementations page there are listed two java implementations.

You can check the core tests of java8kanren which have a fair amount of usage examples.

kongeor
  • 712
  • 1
  • 6
  • 14