daily pastebin goal
94%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Top