Merge pull request #316 from gradha/pr_renames_each_to_map

Renames each proc to map, each is left deprecated.
This commit is contained in:
Araq 2013-01-23 13:30:26 -08:00
commit b0b4150df1
7 changed files with 48 additions and 12 deletions

View file

@ -218,7 +218,7 @@ So "pure object oriented" code is easy to write:
import strutils
stdout.writeln("Give a list of numbers (separated by spaces): ")
stdout.write(stdin.readLine.split.each(parseInt).max.`$`)
stdout.write(stdin.readLine.split.map(parseInt).max.`$`)
stdout.writeln(" is the maximum!")