Open AshleyYakeley opened 4 days ago
Record functions are just like record constructors, just without the pattern matching.
Defined like this (T1, T2 can be any positive types):
T1
T2
rf of x: T1; y: T2; end = foo x y;
Used exactly like record constructors:
rf of x = t1; y = t2 end; let x = t1; y = t2 in rf;
Record functions are just like record constructors, just without the pattern matching.
Defined like this (
T1
,T2
can be any positive types):Used exactly like record constructors: