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:
commit
b0b4150df1
7 changed files with 48 additions and 12 deletions
|
|
@ -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!")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue