We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extras-string
serialCommaAnd
Seq[String]
[extras-string] Add serialCommaAnd syntax for Seq[String]
It is to join a Seq[String] with , (comma) and the last and the second last elements should be also connected with and (Oxford comma / Harvard comma).
,
and
Version: 0.40.0
0.40.0
List.empty[String].serialCommaAnd // String = "" List("").serialCommaAnd // String = "" List("aaa").serialCommaAnd // String = "aaa" List("aaa", "bbb").serialCommaAnd // String = "aaa and bbb" List("aaa", "bbb", "ccc").serialCommaAnd // String = "aaa, bbb, and ccc" List("aaa", "bbb", "ccc", "ddd").serialCommaAnd // String = "aaa, bbb, ccc, and ddd"
The text was updated successfully, but these errors were encountered:
Close #414 - [extras-string] Add serialCommaAnd syntax for Seq[String]
c8aa199
Merge pull request #418 from kevin-lee/task/414/add-serialCommaAnd
3263cc4
Close #414 - [`extras-string`] Add `serialCommaAnd` syntax for `Seq[String]`
kevin-lee
Successfully merging a pull request may close this issue.
Task
Summary
[
extras-string
] AddserialCommaAnd
syntax forSeq[String]
It is to join a
Seq[String]
with,
(comma) and the last and the second last elements should be also connected withand
(Oxford comma / Harvard comma).Project Details
Version:
0.40.0
Description
The text was updated successfully, but these errors were encountered: