t/concur fails
@malcolmsparks 已经在做这个了。
开始于 2019年11月4日。
评估
这个 Issue 还没有评估数据。
描述
(t/concur
#:tick{:beginning #time/instant"2000-01-01T01:00:01.011Z", :end #time/instant"2000-01-01T02:00:01.011Z"}
#:tick{:beginning #time/instant"2000-01-01T00:00:00.003Z", :end #time/instant"2000-01-01T01:00:00.003Z"}
#:tick{:beginning #time/instant"2000-01-01T01:00:01.179Z", :end #time/instant"2000-01-01T02:00:01.179Z"})
Fails with:
No implementation of method: :< of protocol: #'tick.core/ITimeComparison found for class: nil
Because: tick.interval/relation cannot handle nil, which it will get in the example above.
I worked around it by doing:
(defn safe-concur
([] nil)
([x] x)
([x & args]
(reduce
(fn safe-concur-check [x y]
(and
(and x y)
(tick.interval/concur x y)))
x args)))
- 主要语言
- Clojure
- 星标
- 646
- 派生
- 61
- 平均合并
- 17 小时 42 分钟
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
juxt/tick 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 72/100
-
help wanted
难度 5/5 一周以上 新手友好度 25/100
-
help wanted
难度 3/5 1-2 天 新手友好度 35/100
-
interval-calculus
难度 2/5 1-3 小时 新手友好度 48/100
-
interval-calculus
难度 2/5 1-3 小时 新手友好度 45/100
相似的 Issue
-
.Team/Graphy
难度 2/5 1-3 小时 新手友好度 74/100
metabase/metabase#87741 · 1 条评论 ·
维护者通常 1 天内回复
-
Accumulator with a false initial value does not propagate it again after all facts are retracted可能已有人在做 @0z5a 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
oracle-samples/clara-rules#517 ·
-
internal IOP tokens no changelog no qa
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
Misleading WARNING "Failed to find resource type wavc, couldn't enable for streaming" when the WAV未关闭bug triage
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
flaky
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复