Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Jul 22nd, 2018 52 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. (defn -initialize [this params]
  2.   (dosync
  3.     (alter (.state this) assoc :starting-node false)
  4.     (alter (.state this) assoc :m-value (int *m*))
  5.     (alter (.state this) assoc :logger
  6.       (Logger/getLogger (->> this .getAddress .getName))))
  7.   (condp = (alength params)
  8.     0 true
  9.     1 (dosync
  10.     (alter (.state this) assoc :starting-node (boolean (aget params 0)))
  11.     true)
  12.     2 (dosync
  13.     (alter (.state this) assoc :starting-node (boolean (aget params 0)))
  14.     (alter (.state this) assoc :m-value (int (aget params 1)))
  15.     true)))
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