Hey, I am looking for a way to print structures for debugging purposes, and for other purposes. For example, I have a function that produces a list of tuples:
List.mapi (
fun i (name, address) ->
Printf.sprintf "Level: %d, name: %d, address: %d" i name address
) l
|> String.concat " "
Is there a simpler way to print it, maybe using [@@deriving sexp]
I found in Base?