This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-10-16
Channels
- # aleph (73)
- # babashka (12)
- # beginners (17)
- # calva (9)
- # clerk (8)
- # clj-otel (1)
- # clojars (8)
- # clojure (3)
- # clojure-europe (13)
- # clojure-nl (3)
- # clojure-norway (66)
- # clojure-uk (3)
- # clojuredesign-podcast (2)
- # clojurescript (11)
- # clr (8)
- # conjure (2)
- # core-typed (1)
- # data-science (11)
- # datahike (4)
- # etaoin (5)
- # events (1)
- # graalvm (2)
- # honeysql (27)
- # hyperfiddle (26)
- # introduce-yourself (3)
- # lsp (3)
- # membrane (1)
- # off-topic (60)
- # polylith (20)
- # practicalli (4)
- # reitit (3)
- # shadow-cljs (18)
- # specter (2)
- # xtdb (1)
Just learnt about dependent function types in Scala 3. This is what I want most of the core annotations to look like, so functions can work with both simple and complex (heterogenous) types without needing extra annotations https://docs.scala-lang.org/scala3/book/types-dependent-function.html
This is the type I want to give clojure.core/seq
:
(t/All [[x :< (t/Seqable t/Any)]]
[x :-> (t/SeqOn x) :object {:id 0 :path [Seq]}])
👍 2
1