F#中是否有条件访问运算符(类似于C#中的new?.)? [英] Is there conditional access operator in F# (similar to new ?. in C#)?
本文介绍了F#中是否有条件访问运算符(类似于C#中的new?.)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
现在?运算符.
推荐答案
在功能语言中,嵌套结构中的条件/组合遍历,尤其是嵌套结构中的特殊遍历通常使用透镜的概念来建模,透镜的概念是
In functional languages, conditional / compositional traversal, especial in nested structures is generally modelled using the notion of lenses which is explained with a succinct example in this SO thread.
在F#环境中,有 Aether ;请参阅简介文章和由毛里西奥·谢弗(Mauricio Scheffer)在
In the F# environment, there's Aether; see intro article and guide, which builds on the Lenses support developed and written about by Mauricio Scheffer in FSharpx here.
这篇关于F#中是否有条件访问运算符(类似于C#中的new?.)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文