Skip to content

Instantly share code, notes, and snippets.

@alieniasty
Created March 26, 2019 14:04
Show Gist options
  • Save alieniasty/04012f75f6866d4d43e6dd52fdcea946 to your computer and use it in GitHub Desktop.
Save alieniasty/04012f75f6866d4d43e6dd52fdcea946 to your computer and use it in GitHub Desktop.
Filter list based on predicate
open System
let getNumberFromString s =
s
|> Seq.toList
|> List.filter Char.IsDigit
|> String.Concat
|> int
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment