gpt4 book ai didi

.net - 如何在匹配表达式中使用 `&`?

转载 作者:行者123 更新时间:2023-12-04 15:07:57 26 4
gpt4 key购买 nike

Symbol and Operator Reference , 符号 &是用来:

Links: Match Expressions

  • Computes the address of a mutable value, for use when interoperating with other languages.

  • Used in AND patterns.


我查看了匹配表达式页面,但没有看到任何 AND 模式。我如何使用 &模式?

最佳答案

和模式语法如下所示:

(a, b) & (_, "test")

记录在案 here .

关于.net - 如何在匹配表达式中使用 `&`?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43293640/

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