-
Notifications
You must be signed in to change notification settings - Fork 89
Lists and Indexed Iteration
CodingUnit edited this page Dec 24, 2011
·
5 revisions
- Category: Lists, Tuples and Options
- Description: This sample shows simple uses of 'IterI'
- Code:
using Nemerle;
using Nemerle.Collections;
using System;
using System.Console;
def data = ["Cats", "Dogs", "Mice", "Elephants"];
data.IterI((i, x) => WriteLine($"item $i: $x"))
- Execution Result:
item 0: Cats
item 1: Dogs
item 2: Mice
item 3: Elephants
[Copyright ©](Terms of use, legal notice)