Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

maidul98/csv-editor-reader-in-OCAML

Repository files navigation

Spreadsheets have many uses, but their primary task is computation on tables — data that are organized into rows and columns. This is a data abstraction that enables us to compute with csv tables in OCAML.

Operations. Here are the rest of the operations I want to perform on tables:

  • Empty: Create an empty table, which has no rows and no columns.
  • Add: Add a new column by providing both its label, and all of the data for it as a list. The column becomes the last column of the table.
  • Get: Get all the data from a column as a list.
  • Drop: Remove a column.
  • Sort: Sort the table by a column in ascending order.
  • Sort Descending: Sort the table by a column in descending order.
  • Map: Apply a single-argument function to a column, producing a new list of data.
  • Map2: Apply a two-argument function to two columns, producing a new list of data.
  • Filter: Filter the table by keeping all its columns but only some rows. Which rows to keep is determined by a predicate of a column. (A predicate is a function from a single data value to bool, like the function argument of List.filter.)

[8]ページ先頭

©2009-2025 Movatter.jp