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
serialCommaOr
Seq[String]
[extras-string] Add serialCommaOr 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 or (Oxford comma / Harvard comma).
,
or
Version: 0.40.0
0.40.0
List.empty[String].serialCommaOr // String = "" List("").serialCommaOr // String = "" List("aaa").serialCommaOr // String = "aaa" List("aaa", "bbb").serialCommaOr // String = "aaa or bbb" List("aaa", "bbb", "ccc").serialCommaOr // String = "aaa, bbb, or ccc" List("aaa", "bbb", "ccc", "ddd").serialCommaOr // String = "aaa, bbb, ccc, or ddd"
The text was updated successfully, but these errors were encountered:
Close #417 - [extras-string] Add serialCommaOr syntax for Seq[String]
4eb67a4
Merge pull request #424 from kevin-lee/task/417/add-serialCommaOr
375ed04
Close #417 - [`extras-string`] Add `serialCommaOr` syntax for `Seq[String]`
kevin-lee
Successfully merging a pull request may close this issue.
Task
Summary
[
extras-string
] AddserialCommaOr
syntax forSeq[String]
It is to join a
Seq[String]
with,
(comma) and the last and the second last elements should be also connected withor
(Oxford comma / Harvard comma).Project Details
Version:
0.40.0
Description
The text was updated successfully, but these errors were encountered: