0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source net/licenser/sandbox/safe_fns.clj:161 top

(def save-objects
     {
      :clojure-classes (let [c (filter 
				     #(not (nil? %)) 
				     (map #(try (resolve %) (catch Exception e nil))
					  '[clojure.lang.LazySeq clojure.lang.ArrayChunk clojure.lang.XMLHandler
					    clojure.lang.ArraySeq clojure.lang.ChunkBuffer
					    clojure.lang.ChunkedCons clojure.lang.Cons clojure.lang.EnumerationSeq
					    clojure.lang.IndexedSeq clojure.lang.IteratorSeq
					    clojure.lang.Keyword clojure.lang.LazilyPersistentVector
					    clojure.lang.LineNumberingPushbackReader clojure.lang.Numbers
					    clojure.lang.PersistentArrayMap clojure.lang.PersistentHashMap
					    clojure.lang.PersistentHashSet clojure.lang.PersistentList
					    clojure.lang.PersistentQueue clojure.lang.PersistentStructMap
					    clojure.lang.PersistentTreeMap clojure.lang.PersistentTreeSet
					    clojure.lang.PersistentVector clojure.lang.Range clojure.lang.Ratio
					    clojure.lang.SeqEnumeration clojure.lang.SeqIterator clojure.lang.Seqable
					    clojure.lang.Sequential clojure.lang.Sorted clojure.lang.StringSeq
					    clojure.lang.Symbol clojure.lang.TransactionalHashMap
					    clojure.lang.ArrayStream clojure.lang.LazySeq clojure.lang.IteratorStream
					    clojure.lang.Stream clojure.lang.Streamable]))]
			 (if (empty? c)
			   nil
			   (apply class-matcher c)))

      :math-classes (class-matcher java.lang.Number java.lang.Math)
      :basic-classes (class-matcher java.lang.String java.lang.Throwable StringBuilder Character)
      :clojure-functions (function-matcher 'nth)})
Vars in net.licenser.sandbox.safe-fns/save-objects:
Used in 0 other vars

Comments top

No comments for save-objects. Log in to add a comment.