numerator

added
1.2

ns
clojure.core

type
function

(numerator r)

Returns the numerator part of a Ratio.

                ;; note that the function always returns the numerator of the reduced fraction

user=> (map numerator [(/ 2 4) (/ 4 6) (/ 6 8)])
(1 2 3)