tests/inputs/fsharp_script.fsx
raw| 1 | // https://blogs.msdn.microsoft.com/chrsmith/2008/09/12/scripting-in-f/ |
| 2 | // Launches all .fs and .fsi files under the current folder in Notepad |
| 3 | open System |
| 4 | |
| 5 | allFilesUnder Environment.CurrentDirectory |
| 6 | |> Seq.filter (function |
| 7 | | EndsWith ".fs" _ |
| 8 | | EndsWith ".fsi" _ |
| 9 | -> true |
| 10 | | _ -> false) |
| 11 | |> Seq.iter (shellExecute "Notepad.exe") |