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(max in [1 .. count])
  12. def items= $[1..max];
  13. def itemsReversedIfNeed=
  14. if(max % 2 == 0)
  15. items.Rev()
  16. else
  17. items;
  18. def itemsOfString=itemsReversedIfNeed.Map(_.ToString());
  19. def line=String.Join("-", itemsOfString.ToArray());
  20. WriteLine(line)
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
6
compilation info
prog.nem:19:10:19:21: error: unbound name `String.Join'
stdout
Standard output is empty