You're viewing version 1.2.0 of +. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16
  • (+)
  • (+ x)
  • (+ x y)
  • (+ x y & more)
Returns the sum of nums. (+) returns 0.

1 Example top

  • user=> (+)
    0
    
    user=> (+ 1)
    1
    
    user=> (+ -10)
    -10
    
    user=> (+ 1 2)
    3
    
    user=> (+ 1 2 3)
    6
    
    user=> (apply + (range 10))
    45
Log in to add / edit an example.

See Also top

  • 1
    clojure.core/+'

    Returns the sum of nums. (+) returns 0. Supports arbitrary precision.

  • 0
    clojure.core/-

    If no ys are supplied, returns the negation of x, else subtracts th

  • 0
    clojure.core/*

    Returns the product of nums. (*) returns 1.

Log in to add a see also.

Comments top

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