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=List[1 .. max];
  13. /*def itemsReversedIfNeed= if(max%2=0)
  14. items.reverse()
  15. else
  16. items;
  17. WriteLine(String.Join("-", items))*/
  18. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
6
compilation info
prog.nem:12:11:12:15: error: unbound name `List'
stdout
Standard output is empty