summary refs log tree commit diff stats
path: root/web/snippets
diff options
context:
space:
mode:
authorAndreas Rumpf <andreasrumpf@noname>2009-09-15 23:22:22 +0200
committerAndreas Rumpf <andreasrumpf@noname>2009-09-15 23:22:22 +0200
commit66a7e3d37c0303997a6b1a3b7ec263dfb8c07748 (patch)
tree40ae1ab8aeb9086b7310ea73ab8a2ed6b597f88b /web/snippets
parent300430fbba28b408f7ac86ca46b03d9d50839399 (diff)
downloadNim-66a7e3d37c0303997a6b1a3b7ec263dfb8c07748.tar.gz
added tools and web dirs
Diffstat (limited to 'web/snippets')
-rwxr-xr-xweb/snippets/snippet1.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/snippets/snippet1.nim b/web/snippets/snippet1.nim
new file mode 100755
index 000000000..05359a0e0
--- /dev/null
+++ b/web/snippets/snippet1.nim
@@ -0,0 +1,4 @@
+import strutils
+echo "Give a list of integers (separated by spaces): ", 
+     stdin.readLine.splitSeq.each(parseInt).max,
+     " is the maximum!"