maximum.nim 226 B

1234567
  1. # Shows how the method call syntax can be used to chain calls conveniently.
  2. import strutils, sequtils
  3. echo "Give a list of numbers (separated by spaces): "
  4. stdin.readLine.split.map(parseInt).max.`$`.echo(" is the maximum!")