core :: union_find
union–find algorithm using an efficient disjoint-set data structure
# Sample module showing the use of the i18n annotation
module langannot is example, i18n
import gettext
# Some class
class X
# Some method
fun foo: String do
return "This String is a test"
end
end
var t = new X
print t.foo
print "This String is a test"
print """Multiline string
example
of the language annotation capacities
"""
var s = "example"
print "This superstring {s} rocks"
print "This superstring %1 rocks".format(s)
lib/gettext/examples/langannot.nit:15,1--45,43