fork download
  1. #pragma indent
  2. //using System;
  3. using System.Console;
  4. /*using Nemerle;
  5. using Nemerle.Macros;
  6. using Nemerle.Imperative;
  7. using Nemerle.Utility;*/
  8.  
  9. def count=int.Parse(ReadLine());
  10.  
  11. foreach(maxi in [1 .. count])
  12. def listOfIntegers= $[1..maxi];
  13. def listOfIntegersReversedIfNeed=
  14. if(maxi % 2 == 0)
  15. listOfIntegers.Rev()
  16. else
  17. listOfIntegers;
  18. def listOfString=itemsReversedIfNeed.Map(_.ToString());
  19. def stringLine=string.Join("-", listOfString.ToArray());
  20. WriteLine(stringLine)
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
6
compilation info
prog.nem:18:18:18:41: error: unbound name `itemsReversedIfNeed.Map'
stdout
Standard output is empty