nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
model: intro `MModule::first_real_mmodule` to get the first non-fictive module
[nit.git]
/
examples
/
rosettacode
/
hailstone.nit
diff --git
a/examples/rosettacode/hailstone.nit
b/examples/rosettacode/hailstone.nit
index
c1351e1
..
b76c533
100644
(file)
--- a/
examples/rosettacode/hailstone.nit
+++ b/
examples/rosettacode/hailstone.nit
@@
-41,7
+41,7
@@
print "Sequence for 27 has {size27} begin with: {sequence27[0]}, " +
"and end with: {sequence27[size27 - 4]}, {sequence27[size27 - 3]}, " +
"{sequence27[size27 - 2]}, {sequence27[size27 - 1]}"
-var max: Int = hailstone(1).length
+var max = hailstone(1).length
var max_sequence = hailstone(1)
var max_element = 1