Say you want to inspect the implementation of some parametric code
dynamically by printing data on test cases. print() does not work for any
t@ype, so it would be nice to assert:
a is printable
a = a specific type .
So as to not “dumb down” the implementation by removing the
parameterization.
val () = print_val (0)
val () = print_val (“0”)
val () = print_val (0.0)
To print out a list, you can use fprint_list or fprint_list_sep.On Tuesday, January 14, 2014 3:39:01 PM UTC-5, Brandon Barker wrote:
Say you want to inspect the implementation of some parametric code
dynamically by printing data on test cases. print() does not work for any
t@ype, so it would be nice to assert:
a is printable
a = a specific type .
So as to not “dumb down” the implementation by removing the
parameterization.