Made a little changes to F# list-oriented function