silver icon indicating copy to clipboard operation
silver copied to clipboard

Tuple selector sections

Open RandomActsOfGrammar opened this issue 1 year ago • 1 comments

In Silver, one can write

map((.pp), l)

to get a list containing the value of the pp attribute for each tree in the list l.

One should analogously be able to write

map((.3), l)

for a list of tuples l to get a list of the third elements from all the tuples, but tuple selector sections like this are not currently implemented.

RandomActsOfGrammar avatar May 17 '24 16:05 RandomActsOfGrammar

I thought I already implemented this, but I guess that was annotation sections. Yeah, we should do this.

Would be a good Silver dev intro project, along with #577.

krame505 avatar May 17 '24 20:05 krame505