gpt4 book ai didi

haskell - Haskell 钻石符号是什么?

转载 作者:行者123 更新时间:2023-12-02 12:18:29 24 4
gpt4 key购买 nike

这个符号</>是什么意思在 haskell 中意味着什么?

它叫什么?

如何使用?

我使用 ghc 7.8 来编译该应用程序。

最佳答案

它是 combine 的别名.

Combine two paths, if the second path isAbsolute, then it returns the second.

Valid x => combine (takeDirectory x) (takeFileName x) `equalFilePath` x
Posix: combine "/" "test" == "/test"
Posix: combine "home" "bob" == "home/bob"
Windows: combine "home" "bob" == "home\\bob"
Windows: combine "home" "/bob" == "/bob"

关于haskell - Haskell 钻石符号是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24019887/

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