Public Vars

Back

+' (clj)

(source)

function

(+') (+' x) (+' x y) (+' x y & more)
Returns the sum of nums. (+') returns 0. Supports arbitrary precision. See also: +

Examples

clojure
(ns clojure.test-clojure.reducers
  (:require [clojure.core.reducers :as r]
            [clojure.test.generative :refer (defspec)]
            [clojure.data.generators :as gen])
  (:use clojure.test))

(defequivtest test-reduce
  [reduce r/reduce identity]
  [+' *'])
typedclojure/typedclojure
(ns ^:no-doc typed.ann.clojure
  "Type annotations for the base Clojure distribution."
  #?(:cljs (:require-macros [typed.ann-macros.clojure :as macros]))
  (:require [clojure.core :as cc]
            [typed.clojure :as t]
            #?(:clj [typed.ann-macros.clojure :as macros])
            #?(:clj typed.ann.clojure.jvm) ;; jvm annotations
            #?(:clj clojure.core.typed))
  #?(:clj
     (:import (clojure.lang PersistentHashSet PersistentList
                            APersistentMap #_IPersistentCollection
                            #_ITransientSet
                            IRef)
              (java.util Comparator Collection))))

#?@(:cljs [] :default [
cc/+' (t/IFn [t/AnyInteger :* :-> t/AnyInteger]
             [t/Num :* :-> t/Num])
cc/-' (t/IFn [(t/+ t/AnyInteger) :-> t/AnyInteger]
             [(t/+ t/Num) :-> t/Num])
cc/*' (t/IFn [t/AnyInteger :* :-> t/AnyInteger]
             [t/Num :* :-> t/Num])
])
cc/quot (t/IFn #?(:clj [Long Long :-> Long])
               #?(:clj [(t/U Long Double) (t/U Long Double) :-> Double])
               [t/AnyInteger t/AnyInteger :-> t/AnyInteger] 
               [t/Num t/Num :-> t/Num])
videlalvaro/clochure
[ns clojure.test-clojure.reducers
  [:require (clojure.core.reducers :as r)]
  [:use clojure.test]]

[defequivtest test-reduce
  (reduce r/reduce identity)
  (+' *')]
gershwin/gershwin
(ns clojure.test-clojure.reducers
  (:require [clojure.core.reducers :as r])
  (:use clojure.test))

(defequivtest test-reduce
  [reduce r/reduce identity]
  [+' *'])
clojurecup2014/parade-route
(ns clojure.test-clojure.reducers
  (:require [clojure.core.reducers :as r])
  (:use clojure.test))

 (defequivtest test-reduce
  [reduce r/reduce identity]
  [+' *'])
hoterran/misc
(ns clojure.test-clojure.reducers
  (:require [clojure.core.reducers :as r])
  (:use clojure.test))

(defequivtest test-reduce
  [reduce r/reduce identity]
  [+' *'])