Created
          September 2, 2015 14:08 
        
      - 
      
- 
        Save lildata/963851c1650bf46bd535 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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