Public Vars

Back

inc' (clj)

(source)

function

(inc' x)
Returns a number one greater than num. Supports arbitrary precision. See also: inc

Examples

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/inc' (t/IFn [t/AnyInteger :-> t/AnyInteger]
               [t/Num :-> t/Num])
cc/dec' (t/IFn [t/AnyInteger :-> t/AnyInteger]
               [t/Num :-> t/Num])
cc/rationalize [t/Num :-> t/Num]
])