What is the meaning of lam@ in ATS? -
sometimes, see code following:
var foo = lam@(x: int): int => ... what meaning of lam@? difference between lam , lam@?
memory-wise, lam creates boxed closure (if closure), , allocates on heap. lam@ creates flat closure, , allocates on stack frame. see official tutorial reference.
Comments
Post a Comment