mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2025-12-30 10:48:16 +00:00
optional variable deffinition added, annotations removed
This commit is contained in:
parent
7ce8513ad0
commit
de7c1e062f
20 changed files with 178 additions and 57 deletions
|
|
@ -278,6 +278,9 @@ def scan-three = & \io..scan: & \io..scan: & \io..scan:
|
|||
exec main {
|
||||
var n = scan-anything:[int]
|
||||
var x = (for _ in 0--n do scan-int:) // $array[int] & 0
|
||||
|
||||
var k? = if n < 2 then n in print-anything:[string] "n < 2"
|
||||
|
||||
; print-anything:[int] n
|
||||
|
||||
var & a & b & c = scan-three-t:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue