summary refs log tree commit diff stats
path: root/examples/maximum.nim
blob: ac6160f762cd30581c8a8aa77f4bcbdd8262dab1 (plain) (blame)
1
2
3
4
5
6
# Test high level features

import strutils

echo "Give a list of numbers (separated by spaces): "
stdin.readLine.split.map(parseInt).max.`$`.echo(" is the maximum!")