elm-community / string-extra

String helper functions for Elm.
http://package.elm-lang.org/packages/elm-community/string-extra/latest
BSD 3-Clause "New" or "Revised" License
34 stars 26 forks source link

Add toSentenceOr and toSentenceOxfordOr #50

Open ad-si opened 3 years ago

ad-si commented 3 years ago
toSentenceOr [ "lions", "tigers", "bears" ] == "lions, tigers or bears"
toSentenceOxfordOr [ "lions", "tigers", "bears" ] == "lions, tigers, or bears"

Somewhat related: I think the official name is "serial comma" and therefore it should be called toSentenceSerial