fork download
  1. using System;
  2. using System.Console;
  3. using Nemerle.Macros;
  4. using Nemerle.Imperative;
  5. using Nemerle.Utility;
  6.  
  7. def count=int.Parse(ReadLine());
  8.  
  9. foreach(max in [1 .. count])
  10. {
  11. def items=[1 .. max];
  12. /*def itemsReversedIfNeed= if(max%2=0)
  13. items.reverse()
  14. else
  15. items;
  16. WriteLine(String.Join("-", items))*/
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
6
compilation info
prog.nem:11:12:11:20: error: cannot find the operator `..' on int and int
stdout
Standard output is empty