[Chapel Merge] Read CVS HowTo

Branch: refs/heads/main
Revision: 69a21c6
Author: mstrout
Log Message:

Merge pull request #18349 from mstrout/readcsvHowTo

Read CVS HowTo

This is a How-To about reading in CSV files. It includes comments that step someone through creating a list of maps for the CSV file (Pythonic approach) and creating an associative array with the key being the column name and the value being an array of strings (Chapeltastic approach).

In the 1.25 release this will be in the examples/patterns/ subdirectory. As we collect more HowTos, the goal will be to have a page of them in the documentation much like what is done with primers today.

[reviewed by @e-kayrakli who gave extensive feedback and lots of suggested improvements to the code including using some zippered iteration in the Chapeltastic approach]

Modified Files:
A test/release/examples/patterns/metadata-20lines.csv

A test/release/examples/patterns/readcsv.catfiles
A test/release/examples/patterns/readcsv.chpl
A test/release/examples/patterns/readcsv.cleanfiles
A test/release/examples/patterns/readcsv.compopts
A test/release/examples/patterns/readcsv.good
M test/release/examples/patterns/Makefile

Compare: https://github.com/chapel-lang/chapel/compare/fba701cb7b7f...69a21c664cca