Skip to content

Instantly share code, notes, and snippets.

@pnathan
Created June 14, 2016 07:29
Show Gist options
  • Save pnathan/a0b31e97492e7eb18e75c16a40dbdbeb to your computer and use it in GitHub Desktop.
Save pnathan/a0b31e97492e7eb18e75c16a40dbdbeb to your computer and use it in GitHub Desktop.
ocaml syntax error
let table_to_json table =
let open Ezjsonm in
let row_to_triple row =
json_of_triple { row.(0) ; row.(1) ; row.(2) } in
list (Array.to_list (Array.map row_to_triple table))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment