Skip to content

Instantly share code, notes, and snippets.

@lildata
Created September 2, 2015 14:08
Show Gist options
  • Save lildata/963851c1650bf46bd535 to your computer and use it in GitHub Desktop.
Save lildata/963851c1650bf46bd535 to your computer and use it in GitHub Desktop.
import java.util.Arrays;
import java.util.Iterator;
import clojure.lang.IFn;
import clojure.lang.LazySeq;
import clojure.lang.RT;
public class Main {
public static void main(String[] args) {
IFn map = RT.var("clojure.core", "map");
IFn inc = RT.var("clojure.core", "inc");
LazySeq seq = (LazySeq) map.invoke(inc, new int[] { 1, 2, 3 });
System.out.println(Arrays.asList(seq.toArray()));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment