Created
March 26, 2019 14:04
-
-
Save alieniasty/04012f75f6866d4d43e6dd52fdcea946 to your computer and use it in GitHub Desktop.
Filter list based on predicate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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