1 Example top

  • ;; do is used to evaluate multiple expressions in order, usually for the
    ;; purpose of evaluating exprs that have side-effects (such as printing
    ;; or I/O).  do returns the value of its last expression.
    ;;
    ;; do w/o args returns nil.
    
    => (do
         (println "LOG: Computing...")
         (+ 1 1))
    LOG: Computing...
    2
    
    => (do)
    nil
    
Log in to add / edit an example.

See Also top

Log in to add a see also.

Comments top

No comments for do. Log in to add a comment.