Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 30th, 2012  |  syntax: None  |  size: 0.65 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. (def-phase-fn cake-phase [x y] (+ x) (+ y))
  2. pallet.extensions> (cake-phase 3 1 2)
  3.  
  4. ;;Invalid session map in phase.
  5. ;;session is 4
  6. ;;Problem probably caused by subphase:
  7. ;;  (+ x)
  8. ;;Check for non crate functions, improper crate functions, or
  9. ;;      problems in threading the session map in your phase
  10. ;;      definition. A crate function is a function that takes a session
  11. ;;      map and other arguments, and returns a modified session
  12. ;;      map. Calls to crate functions are often wrapped in a threading
  13. ;;      macro, -> or pallet.phase/phase-fn, to simplify chaining of the
  14. ;;      session map argument.
  15. ;;  [Thrown class clojure.contrib.condition.Condition]