aboutsummaryrefslogtreecommitdiff
path: root/src/lux/base.clj
diff options
context:
space:
mode:
authorEduardo Julian2016-05-11 03:20:58 -0400
committerEduardo Julian2016-05-11 03:20:58 -0400
commitcdf27ce3e7ade20a4941b89fbd647fbcee6f7006 (patch)
tree6f485cd60ed1c61377c58016648ccd92ca82cade /src/lux/base.clj
parent949bdfae094db76055ed36e8ee4a180b956f3e53 (diff)
- lux/Function is now an abstract class with 4 versions of apply, to improve performance when calling functions.
Diffstat (limited to '')
-rw-r--r--src/lux/base.clj9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lux/base.clj b/src/lux/base.clj
index b921fa86c..02bd55112 100644
--- a/src/lux/base.clj
+++ b/src/lux/base.clj
@@ -716,12 +716,6 @@
(.invoke define-class this (to-array [class-name bytecode (int 0) (int (alength bytecode))]))
(throw (IllegalStateException. (str "[Class Loader] Unknown class: " class-name))))))))
-;; (deftype Host
-;; (& #writer (^ org.objectweb.asm.ClassWriter)
-;; #loader (^ java.net.URLClassLoader)
-;; #classes (^ clojure.lang.Atom)
-;; #catching (List Text)
-;; #module-states (List (, Text ModuleState))))
(defn host [_]
(let [store (atom {})]
(T [;; "lux;writer"
@@ -1212,3 +1206,6 @@
_
(assert false (adt->text xs))))
+
+(defn |partition [n xs]
+ (->> xs ->seq (partition-all n) (map ->list) ->list))