gpt4 book ai didi

scala - scalaz运算符的可发音名称?

转载 作者:行者123 更新时间:2023-12-03 10:55:21 24 4
gpt4 key购买 nike

在学习Haskell时,我发现此问题的答案非常有用,因为它将概念与运算符相关联:Are there pronounceable names for common Haskell operators?

是否有scalaz的等效字典?或者有人可以提供有关他们如何发音自己的scalaz代码的建议吗?

最佳答案

Scalaz恰好具有用于Intellij兼容性的模板生成器,该模板生成器具有相当多的scalaz运算符的运算符和通用名称,您只需要仔细检查一下代码(也许可以翻译一些unicode):
https://github.com/scalaz/scalaz/blob/release/6.0.4/etc/intellij/livetemplate/generate-live-templates.scala

从文件:

  method("map", "∘", Param("f")),
method("map2", "∘∘", Param("f")),
method("o", "∘", Param("f")),
method("oo", "∘∘", Param("f")),
method("|->", "↦", Param("f")),
method("bind", "∗", Param("f")),
method("plus", "⊹", Param("a")),
method("appendpure", "\u279C:", Param("a")),
method("pluspure", "\u279D:", Param("a")),
method("sum", "∑"),
method("suml", "∑"),
method("exists", "∃", Param("f")),
method("forall", "∀", Param("f")),
method("traversemonoid", "↣", Param("f")),
method("join", "μ"),
method("contramap", "∙", Param("f")),
method("pure", "η"),
function("kleisli", "☆", Param("f")),
function("cokleisli", "★", Param("f")),
method("dual", "σ"),
method("equal", "≟", Param("a")),
method("notequal", "≠", Param("a")),
method(">>>", "⋙", Param("a")),
method("<<<", "⋘", Param("a")),
function("undefined", "⊥"),
method("^", "∧", Param("a")),
method("conjunction", "∧", Param("a")),
method("disjunction", "∨", Param("a")),
method("v", "∨", Param("a")),
method("<==", "\u21D0", Param("a")),
method("zipstream", "\u0290"),
method("mult", "\u220f"),
function("zero", "∅"),
function("x", "×"),
function("=>", "\u21D2"),
method("3", "∋", Param("a")),
method("contains", "∋", Param("a")),
method("memberof", "∈:", Param("a"))

关于scala - scalaz运算符的可发音名称?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14472310/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com