8 ms·
Surprised no one's brought up Haskell's Debug.Trace, which effectively does this, but returning whichever value you tell it to.
by T-R 11y ago
Surprised no one's brought up Haskell's Debug.Trace, which effectively does this, but returning whichever value you tell it to.