diff options
author | Grzegorz Adam Hankiewicz <gradha@imap.cc> | 2013-01-22 20:29:07 +0100 |
---|---|---|
committer | Grzegorz Adam Hankiewicz <gradha@imap.cc> | 2013-01-22 21:41:26 +0100 |
commit | 91700f29e718e41026b536d72b9ff010a4574bf2 (patch) | |
tree | c35bc1437c704f72be04299d0836cb9a3b244327 /doc | |
parent | d0bd5d5cc3407e14ff37590077ec40441be26c84 (diff) | |
download | Nim-91700f29e718e41026b536d72b9ff010a4574bf2.tar.gz |
Renames each proc to map, each is left deprecated.
Diffstat (limited to 'doc')
-rwxr-xr-x | doc/tut2.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tut2.txt b/doc/tut2.txt index 9f9dbe2db..11b1b1dd5 100755 --- a/doc/tut2.txt +++ b/doc/tut2.txt @@ -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!") |