diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-03-17 14:46:36 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-03-17 14:46:36 -0400 |
| commit | 993284153011006a1164b4b1f6bb1522e5131cb0 (patch) | |
| tree | b34793189363b6b314d2e69f2c7b1ea6249576c2 /test/tables.tm | |
| parent | 5c2bb00bafa4ad6e004f171687b9f21a824695c6 (diff) | |
Improve comprehensions for both arrays and tables
Diffstat (limited to 'test/tables.tm')
| -rw-r--r-- | test/tables.tm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/tables.tm b/test/tables.tm index 53b720c9..27b176bf 100644 --- a/test/tables.tm +++ b/test/tables.tm @@ -49,3 +49,8 @@ for k,v in t2 t2_str ++= "({k}=>{v})" >> t2_str = "(three=>3)" + +>> {i=>10*i for i in 5} += {1=>10, 2=>20, 3=>30, 4=>40, 5=>50} +>> {i=>10*i for i in 5 if i mod 2 != 0} += {1=>10, 3=>30, 5=>50} |
