iter-ops raised above assign; 'cat' operator returns an iterator; $$ operator supports iterators producing a list of items

This commit is contained in:
2026-05-09 12:15:59 +02:00
parent 5285b61320
commit e5a61b5638
6 changed files with 159 additions and 10 deletions
+11
View File
@@ -49,3 +49,14 @@ func TestIteratorParser(t *testing.T) {
// runTestSuiteSpec(t, section, inputs, 10)
runTestSuite(t, section, inputs)
}
func TestCatIterator(t *testing.T) {
section := "Iterator"
inputs := []inputType{
/* 1 */ {`([1] cat [2]) map $_`, kern.NewList([]any{int64(1), int64(2)}), nil},
/* 2 */ {`$$([1] cat [2])`, kern.NewList([]any{int64(1), int64(2)}), nil},
}
// runTestSuiteSpec(t, section, inputs, 2)
runTestSuite(t, section, inputs)
}