Add multilingual language and systems learning tracks
This commit is contained in:
1 parent
07338189fc
commit
d8d1c40118
844 files changed
+6061
No files matched your search
@@ -0,0 +1,11 @@
|
||||
fn checked_score(value int) !int {
|
||||
if value < 0 || value > 100 { return error('Invalid score') }
|
||||
return value
|
||||
}
|
||||
fn main() {
|
||||
result := checked_score(101) or {
|
||||
println('Practice')
|
||||
return
|
||||
}
|
||||
println(result)
|
||||
}
|
||||
Reference in new issue
Block a user