diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-07-20 16:45:13 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-07-20 16:45:13 -0400 |
| commit | fb95bbb1d49dab882e5b4a962b7dd9b2438fdacb (patch) | |
| tree | f69201ed2d604b2281f3919a2a56fc470f6481df /test | |
| parent | 907122a049572f02880713620e0e6b024a5cff7f (diff) | |
Deprecate array:pairs() and switch iterator functions to use enums
Diffstat (limited to 'test')
| -rw-r--r-- | test/arrays.tm | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/test/arrays.tm b/test/arrays.tm index ed43acb0..fb6d16ca 100644 --- a/test/arrays.tm +++ b/test/arrays.tm @@ -143,16 +143,3 @@ func main(): >> [i*10 for i in 10]:by(2):by(-1) = [90, 70, 50, 30, 10] - - do: - strs := ["A", "B", "C"] - >> ["{x}{y}" for x, y in strs:pairs()] - = ["AB", "AC", "BC"] - >> ["{x}{y}" for x, y in strs:pairs(self_pairs=yes)] - = ["AA", "AB", "AC", "BB", "BC", "CC"] - >> ["{x}{y}" for x, y in strs:pairs(ordered=yes)] - = ["AB", "AC", "BA", "BC", "CA", "CB"] - >> ["{x}{y}" for x, y in strs:pairs(self_pairs=yes, ordered=yes)] - = ["AA", "AB", "AC", "BA", "BB", "BC", "CA", "CB", "CC"] - >> ["!" for x,y in [:Text]:pairs()] - = [] |
