package janestreet_csv
Tools for working with CSVs on the command line
Install
Dune Dependency
Authors
Maintainers
Sources
janestreet_csv-v0.16.0.tar.gz
sha256=c039eeef15bc68460984e74a003c3068da2e4854c4dc2cdcfec6be946f2b0a65
doc/src/janestreet_csv.csv_tool_lib/validate.ml.html
Source file validate.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
open Core open Async let run ?sep reader = let%bind csv_shape = Csv_shape.create_streaming ?sep reader in match Csv_shape.to_error_string csv_shape with | Ok () -> return (Ok ()) | Error error_csv -> let error_csv = List.map ~f:(String.concat ~sep:",") error_csv in (match error_csv with | [ "" ] -> return (Error "") | error_csv -> return (Error (String.concat ~sep:"\n" ("Error: lines with different numbers of columns" :: "" :: error_csv)))) ;;
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>