IETS3 / iets3.opensource

Open Source Parts of IETS3
Apache License 2.0
44 stars 22 forks source link

add a replacement rule for homogeneous tuples and lists #1075

Closed alexanderpann closed 3 weeks ago

alexanderpann commented 1 month ago

Tuple types where all elements have the same type can now be used interchangeable with list types. Here is a concrete example where nTimes returns a tuple but the result is assigned to a list:

Screenshot 2024-09-26 at 17 54 57

On the generator level this level should also be fine as both tuples and lists use the class PVector. I just had to use PVector instead of PVector<Object> in some places.