2 ms·
> How can you print a user defined data type? Pretty much the same way you'd do in Haskell or Rust: you add a `[@@deriving show]` directive to your datatype.
by yodsanklai 4y ago
> How can you print a user defined data type?
Pretty much the same way you'd do in Haskell or Rust: you add a `[@@deriving show]` directive to your datatype.