I am implementing a bare-bones pandas library with the following capability:
data.subset(indexes: (0,3)).agg(array.sum, fields: "quantity")
My first attempt was to make a function that stores subset, agg, etc. in a dictionary that it returns. However, typst requires additional parens around function access in dicts. So it looks rather ugly and much less readable:
#((data.subset)(indexes: (0,3)).agg)(array.sum, fields: "quantity")
My question is: does typst support a paradigm other than dictionaries to enable operator chaining?