Add 2d array example

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-02-18 17:47:40 -08:00
parent 9801674815
commit 00774700a6

View File

@@ -7,9 +7,17 @@ println!
{ 1 dup! dup! }
println!
# Call your own functions, why not?
# Internal function definitions are allowed too
{
[ 2 *! ] :double
1 dup! double! dup! double!
}
println!
# 2-D arrays
{
{ 1 0 0 }
{ 0 1 0 }
{ 0 0 1 }
}
println!