From 5c6acc30a45b1f705e7a00a742e3a67ee09d3dad Mon Sep 17 00:00:00 2001 From: HiveBeats Date: Mon, 5 Jun 2023 16:58:36 +0400 Subject: [PATCH] feat: refactoring --- SoundGen/Program.fs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/SoundGen/Program.fs b/SoundGen/Program.fs index 1c89506..6d3195c 100644 --- a/SoundGen/Program.fs +++ b/SoundGen/Program.fs @@ -9,9 +9,7 @@ open System type Note = { Name: string; Length: int } let parseNotes (input: string) = - let gluedString = input.Replace('\n', ' ') - - gluedString.Split(' ', StringSplitOptions.RemoveEmptyEntries) + input.Replace('\n', ' ').Split(' ', StringSplitOptions.RemoveEmptyEntries) |> Seq.map (fun noteStr -> let noteSigns = noteStr.Split('-') let name = noteSigns[0].Trim()