Hi all!
I think that the list of "List System Actions" (https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Data/Data_Types/List) could be expanded to include the following (or similar naming):
- ListInsertHead() - Insert an element in the first position (head) of the list.
- ListRemoveHead() - Remove the first element (head) of the list.
- ListRemoveTail() - Remove the last element (tail) of the list.
These new system actions for manipulating lists would just be specific common use-cases of already existing systems actions, but in my opinion, would provide 2 benefits:
1) Avoid bugs by not constantly reinventing the wheel.
For example, every time a developer needs to implement the specific case of ListRemoveTail() it needs to be very careful not to create bugs.
2) Make it explicit the intent of the developer.
By using ListRemoveHead() it is clear that the intent of the developer is to remove the first element in the list.
I believe this would be beneficial in making our code cleaner.
--Tiago Bernardo