Skip to content

Instantly share code, notes, and snippets.

@clementi
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clementi/869adc1489625911c2bc to your computer and use it in GitHub Desktop.
Save clementi/869adc1489625911c2bc to your computer and use it in GitHub Desktop.
List the contents of the PATH environment variable in F#
open System
open System.IO
let getPathItems =
let path = Environment.GetEnvironmentVariable "PATH" in
path.Split Path.PathSeparator
[<EntryPoint>]
let main argv =
Array.iter (printfn "%s") getPathItems
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment