数値が整数の場合、trueを返します。
構文は次のとおりです。
(integer? number)
以下は、整数テスト関数の例です。
(ns clojure.examples.hello (:gen-class)) ;; This program displays Hello World (defn Example [] (def x (integer? 0)) (println x) (def x (integer? 0.0)) (println x)) (Example)
上記のプログラムは、次の出力を生成します。
true false