What does a double exclamation mark (!!) do in Fsharp / FAKE?

I stumbled upon the following code and cannot figure out what operation the double exclamation marks provide. This piece of code is taken from the FAKE script used in the CICD system. The handbook of symbols and operators Microsoft Unknown this statement, and I can not find it in the directory of FAKE the API .

  !! (projectPackagePath + "/*.zip")
    |> Seq.iter(fun path ->
      trace ("Removing " + path)
      ShellExec tfCommand ("delete " + path + " /noprompt")

Another use case

let buildLabelFiles = 
    !!(labelPath @@ "*.txt")
+5
source share
1 answer

!! The operator accepts a file template and returns a collection of files matching the template.

For example, if you want to print all text files in the current folder, you can write:

for file in !! "*.txt" do
  printfn "%s" file

, , IGlobbingPattern (. ), , . IGlobbingPattern IEnumerable, , IGlobbingPattern ++ --.

+7

Source: https://habr.com/ru/post/1688152/


All Articles