more docs
This commit is contained in:
1 parent
86d59abfbc
commit
698d169612
2 files changed
+44
No files matched your search
@@ -603,6 +603,17 @@ Ranges could be inside other ranges:
|
||||
assert( (2..3) in (1..10) )
|
||||
>>> void
|
||||
|
||||
There are character ranges too:
|
||||
|
||||
'd' in 'a'..'e'
|
||||
>>> true
|
||||
|
||||
and you can use ranges in for-loops:
|
||||
|
||||
for( x in 'a' ..< 'c' ) println(x)
|
||||
>>> a
|
||||
>>> b
|
||||
>>> void
|
||||
|
||||
See [Ranges](Range.md) for detailed documentation on it.
|
||||
|
||||
|
||||
Reference in new issue
Block a user