File tree 3 files changed +4
-66
lines changed
3 files changed +4
-66
lines changed Original file line number Diff line number Diff line change 3
3
(:require [clojure.test :as t]
4
4
[babashka.classpath :as cp]))
5
5
6
- (def require-nsyms ['java-time.potemkin.util
7
- 'java-time.joda
6
+ (def require-nsyms ['java-time.joda
8
7
'java-time.core
9
8
'java-time.properties
10
9
'java-time.util
Original file line number Diff line number Diff line change 1
1
(ns java-time.graph
2
2
(:require [clojure.set :as sets]
3
3
[clojure.string :as string]
4
- [java-time.potemkin.util :as u]
5
4
[java-time.util :as jt.u])
6
5
#? @(:bb []
7
6
:default [(:import [java.util PriorityQueue])]))
65
64
66
65
(def assignable?
67
66
^{:doc " True if `a` is assignable to `b`, e.g. Integer is assignable to Number." }
68
- (u/fast- memoize
67
+ (memoize
69
68
(fn [^Types a ^Types b]
70
69
(or (= a b)
71
70
(and (= (.arity a) (.arity b))
98
97
(map first (combos n s))))
99
98
100
99
(def continuous-combinations
101
- (u/fast- memoize
100
+ (memoize
102
101
(fn [n]
103
102
(let [rng (range n)]
104
103
(into [] (comp (map inc)
313
312
g)))
314
313
315
314
(def conversion-path
316
- (u/fast- memoize
315
+ (memoize
317
316
(fn [^ConversionGraph g, ^Types src, ^Types dst]
318
317
(when (has-source-type? g src dst)
319
318
(let [g' (expand-frontier g src max-extent)]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments