Skip to content

Lists and Iteration

CodingUnit edited this page Dec 24, 2011 · 6 revisions

Lists and Iteration

  • Category: Lists, Tuples and Options
  • Description: This sample shows simple uses of 'Iter'
  • Code:
using Nemerle;
using System;
using System.Console;

def data = ["Cats", "Dogs", "Mice", "Elephants"];
data.Iter(x => WriteLine($"item: $x"))
  • Execution Result:
item: Cats
item: Dogs
item: Mice
item: Elephants

[Copyright ©](Terms of use, legal notice)

Clone this wiki locally