Created
June 19, 2015 17:36
-
-
Save jeremyabbott/6e7a214f3bd93acc572a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 getLyrics (input : string) (matchString : string) = | |
input.Split([|matchString|], StringSplitOptions.RemoveEmptyEntries) | |
|> Array.reduce (fun acc item -> sprintf "%s %s" acc item) | |
[<EntryPoint>] | |
let main argv = | |
printfn "%A" (getLyrics "WUBWUBWUBIWUBAMWUBWUBXWUBWUBWUB" "WUB") | |
0 // return an integer exit code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment