5 lines
140 B
FSharp
5 lines
140 B
FSharp
let stripComments s =
|
|
s
|
|
|> Seq.takeWhile (fun c -> c <> '#' && c <> ';')
|
|
|> Seq.map System.Char.ToString
|
|
|> Seq.fold (+) ""
|