Changelog
Unreleased
0.8.0
- Remove
text.from - Add
text.stringthat returns CSV string - Add
text.yielderthat returnsYielder(String)where each element is a row of the CSV. - Update README.
v0.7.0
Previously, tysv only accepted String and was returning a typed List, but with this release, we accept either Text (String, same as before) or a Stream (FileStream from the file_stream library). This allows operating on large CSV files that cannot fit the buffer.
- A new enum-type
Sourcethat is eitherStream(FileStream)orText(String). tysv.fromandtysv.from_with_restnow requires specifying the source usingSource.tysv.fromandtysv.from_with_restreturnsYielder(a)instead ofList(a).tysv.row_seponly works with when source isText(String)because there is no trivial way to splitFileStreamapart from using the parent library’sread_linefunction.text.fromnow requiresYielder(a)instead ofList(a)