Advertisement
CLooker

eager v lazy evall

Jul 24th, 2018
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const zero = num => num - num;
  2.  
  3. // eager won't break this
  4. zero(random(10)); // zero(8) => 8 - 8
  5.  
  6. // lazy could
  7. zero(random(10)); // zero(random(10)) => random(10) - random(10);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement