gpt4 book ai didi

haskell - 这个语法在 Haskell 中是什么意思 : _|_ or (_|_)

转载 作者:行者123 更新时间:2023-12-03 13:11:28 33 4
gpt4 key购买 nike

我一直在许多受人尊敬的文档中看到这个相当令人尴尬的事情:_|_(_|_)
找不到它的定义(Google 不能很好地处理符号)。那到底是什么呢?

最佳答案

来自 here :-

Bottom

The mathematical symbol for bottom is '⊥'. That's Unicode character 22A5 hex = 8869 decimal. Also available in HTML as '⊥' and in LaTeX as '\bot' (within math mode). In plain ASCII, it's often written as the extremely ugly character sequence '_|_'.



也来自 reserve keywords in Haskell

检查 wiki 中的 Bottom and Partial Functions

To define partial functions, we introduce a special value ⊥, named bottom and commonly written | in typewriter font. We say that ⊥ is the completely "undefined" value or function. Every basic data type like Integer or () contains one ⊥ besides their usual elements.



给出了更多描述 here :-

关于haskell - 这个语法在 Haskell 中是什么意思 : _|_ or (_|_),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19794681/

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