daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 45 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. ;; structs.clj
  2.  
  3. (ns structs)
  4.  
  5. (defrecord Rule [name doc actions])
  6.  
  7. ;; core.clj
  8.  
  9. (ns core
  10.   (:use structs))
  11.  
  12. (println "rule=" (structs.Rule. "rule1" "description"  []))
  13.  
  14. ; Result ==>   'rule= #:structs.Rule{:name rule1, :doc description, :actions []}'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top