import mir.timestamp: Timestamp; import mir.format: stringBuf; import mir.test; auto someMatrix = [ ["str".CsvAlgebraic, 2.CsvAlgebraic, true.CsvAlgebraic], [3.0.CsvAlgebraic, "2022-12-12".Timestamp.CsvAlgebraic, null.CsvAlgebraic] ]; auto buffer = stringBuf; buffer.serializeCsv(someMatrix); buffer.data.should == "str,2,TRUE\n3.0,2022-12-12,\n";
Ion serialization for custom outputt range.