Public Vars

Back

denominator (clj)

(source)

function

(denominator r)
Returns the denominator part of a Ratio.

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/rational? (t/Pred (t/U t/Int clojure.lang.Ratio BigDecimal))
cc/decimal? (t/Pred BigDecimal)
cc/denominator [clojure.lang.Ratio :-> t/Num]
])
aliostad/deep-learning-lang-detection
(ns fluxion-test
  (:require [clojure.core.async :refer [chan <!! onto-chan]]
            [fluxion :refer :all]
            [clojure.test :refer :all]
            [clojure.set :as set]
            [clojure.data.generators :as gen]
            [clojure.test.generative :refer [defspec]]
            [clojure.test.generative.runner :as runner]))

;; Creating multiple timers should not create multiple threads.
;;
;; Ideally we can drive the sleep loop in one thread iterating at the
;; lowest common denominator of all extant clock cycles, and then send
;; to channels modolu their multiple of that lcd tick cycle.
;;
;; Doing so means having a new potential clock client which requires a
;; faster cycle period than the current clock. We need to decouple the
;; signaling channels from the iterating process so that the iterating
;; process can be replaced.
;;
;; This means clock system needs to both manage the modulo on a per
;; client basis, and swapping clock beats at the inputs of all
;; clients' channels.
;;
;; Ideally we can reclaim clock channels from consumers who stop using
;; them. Holding weak references to the clock channels should enable
;; this (but means modulo channels need to be tolerant to the weak ref
;; having been GCed and then shutting down cleanly.