mirror of
https://github.com/dragonheim/gagent.git
synced 2025-05-24 11:16:46 -07:00
[CI SKIP] Refactored project layout per Mark Wolfe Blog : https://www.wolfe.id.au/2020/03/10/how-do-i-structure-my-go-project/
This commit is contained in:
parent
0557021282
commit
a7747040ce
31 changed files with 15 additions and 45 deletions
15
pkg/picol/examples/t2.tcl
Normal file
15
pkg/picol/examples/t2.tcl
Normal file
|
@ -0,0 +1,15 @@
|
|||
proc square {x} {
|
||||
* $x $x
|
||||
}
|
||||
|
||||
set a 1
|
||||
while {<= $a 10} {
|
||||
if {== $a 5} {
|
||||
puts {Missing five!}
|
||||
set a [+ $a 1]
|
||||
continue
|
||||
}
|
||||
puts "I can compute that $a*$a = [square $a]"
|
||||
set a [+ $a 1]
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue