elm-community / string-extra

String helper functions for Elm.

Home Page:http://package.elm-lang.org/packages/elm-community/string-extra/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add toSentenceOr and toSentenceOxfordOr

ad-si opened this issue · comments

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