実際には多くの CSV ファイルを 1 つにまとめた CSV ファイルがあります。このようなもの:
"First Part"
"Some", "data", "in", "here"
"More", "stuff", "over", "here"
"Another Part"
"This", "section", "is", "not", "the", "same", "as", "the", "first"
"blah", "blah", "blah", "blah", "blah", "blah", "blah", "blah", "blah"
"Yet another section"
"And", "this", "is", "yet", "another"
"blah", "blah", "blah", "blah", "blah"
個別のコンポーネントに分割したいと思います。groupBy
各セクションのヘッダーがわかっている場合、一連の正規表現を表すヘッダー パターンを渡して aSeq[Seq[String]]
または類似の何かを返すような何らかの処理を行うことができれば、それは素晴らしいことです。