forked from sourceryinstitute/julienne
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(string_t): operator(.csv.), operator(.sv.)
This commit adds 1. A unary operator(.csv.) that produces a string_t object encapsulating a comma-separated value (CSV) created from a. a string_t array or b. a character array, 2. A binary operator(.sv.) that produces a string_t object encapsulating a comma-separated value (CSV) created from left- and right-hand sides, respectively corresponding to a. a string_t array and a string_t separator or b. a string_t array and a character separator. c. a character array and a character separator d. a character array and a string_t separator 3. A unit test that verifies the following identities: "a,bc,def" == .csv. [string_t("a"), string_t("bc"), string_t("def")] "abc,def" == .csv. ["abc", "def"] "do|re|mi" == (string_t(["do", "re", "mi"]) .sv. "|" ) "dore|mi" == (([string_t("dore"), string_t("mi")]) .sv. string_t("|")) "do|re|mi" == ( ["do", "re", "mi"] .sv. "|" ) "do|re|mi" == ( ["do", "re", "mi"] .sv. string_t("|")) corresponding to cases 1a-b and 2a-d, respectively.
- Loading branch information
Showing
4 changed files
with
127 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters