fork download
  1. using System;
  2. using System.Console;
  3. using Nemerle;
  4. using Nemerle.Macros;
  5. using Nemerle.Imperative;
  6. using Nemerle.Utility;
  7.  
  8. def count=int.Parse(ReadLine());
  9.  
  10. foreach(max in [1 .. count])
  11. {
  12. def items= $[1..max];
  13. def itemsReversedIfNeed= if(max % 2 == 0)
  14. items.Rev()
  15. else
  16. items;
  17. def line=String.Join("-", itemsReversedIfNeed)
  18. WriteLine(line);
  19. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
6
compilation info
prog.nem:18:1:18:10: error: expected `;'
prog.nem:18:1:18:10: error: parse error near identifier `WriteLine': unexpected token after expression in sequence
stdout
Standard output is empty