Skip to content

Instantly share code, notes, and snippets.

@lenadroid
Created May 19, 2015 09:35
Show Gist options
  • Select an option

  • Save lenadroid/745ba81771c50545eb2d to your computer and use it in GitHub Desktop.

Select an option

Save lenadroid/745ba81771c50545eb2d to your computer and use it in GitHub Desktop.
let songFiles =
// url addresses to song lyrics are there
// full sample here https://github.com/lenadroid/dotnetfringe/blob/master/azure/NetFringe/CloudFlows.fsx
[| ... |]
|> CloudFlow.ofArray
|> CloudFlow.map download
|> CloudFlow.filter (fun s -> s.Length > 300)
|> CloudFlow.map (fun s -> s.Substring(0, s.IndexOf("\n") - 1))
|> CloudFlow.toArray
|> cluster.CreateProcess
songFiles.AwaitResult()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment