fork download
  1. #pragma indent
  2. using System;
  3. using Nemerle.Collections.List;
  4.  
  5. def Add(x,y)
  6. x+y;
  7.  
  8. def r = Map($[1..10], Add(5, _));
  9.  
  10. def Add1 = Add(1,_);
  11.  
  12. def r = Map(r, Add1);
  13.  
  14. def r = Map(r, 5*_);
  15.  
  16. Console.WriteLine(r);
Success #stdin #stdout 0.09s 19552KB
stdin
stdout
[35, 40, 45, 50, 55, 60, 65, 70, 75, 80]