Destide@feddit.uk to Programmer Humor@lemmy.mlEnglish · 2 months agoInfallible Codelemmy.mlimagemessage-square39linkfedilinkarrow-up18arrow-down10
arrow-up18arrow-down1imageInfallible Codelemmy.mlDestide@feddit.uk to Programmer Humor@lemmy.mlEnglish · 2 months agomessage-square39linkfedilink
minus-squarebalsoft@lemmy.mllinkfedilinkarrow-up0·edit-22 months agoYou kid, but Idris2 documentation literally proposes almost this exact impl: https://idris2.readthedocs.io/en/latest/tutorial/typesfuns.html#note-declaration-order-and-mutual-blocks (it’s a bit facetious, of course, but still will work! the actual impl in the language is a lot more boring: https://github.com/idris-lang/Idris2/blob/main/libs/base/Data/Integral.idr)
minus-squaremyotheraccount@lemmy.worldlinkfedilinkarrow-up1·2 months agoI hadn’t seen Idris2. Thank you for providing me with a new rabbit hole!
You kid, but Idris2 documentation literally proposes almost this exact impl: https://idris2.readthedocs.io/en/latest/tutorial/typesfuns.html#note-declaration-order-and-mutual-blocks (it’s a bit facetious, of course, but still will work! the actual impl in the language is a lot more boring: https://github.com/idris-lang/Idris2/blob/main/libs/base/Data/Integral.idr)
I hadn’t seen Idris2. Thank you for providing me with a new rabbit hole!