gpt4 book ai didi

f# - 的意思 !! F# (.fsx) 中的运算符

转载 作者:行者123 更新时间:2023-12-01 03:06:11 24 4
gpt4 key购买 nike

<分区>

我正在查看通过 FsLab 模板自动生成的 FAKE 构建脚本。在“let”绑定(bind)中的一个字符串前面,!!使用运算符。的意思是什么!!运营商?

查看 Microsoft Docs F# Symbols and Operator Reference , 这 !!运算符未列出。

这是有问题的代码,!!运算符在倒数第三行:

#r "./packages/build/FAKE/tools/FakeLib.dll"

open Fake
open System

let buildDir = "./build/"
let appReferences = !! "/**/*.fsproj"
let dotnetcliVersion = "2.0.2"
let mutable dotnetExePath = "dotnet"

再往下,appReferences 标识符的使用如下:

Target "Restore" (fun _ ->
appReferences
|> Seq.iter (fun p ->
let dir = System.IO.Path.GetDirectoryName p
runDotnet dir "restore"
)
)

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