Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 82362

List operation Tail in Mx5.16

$
0
0

Is it me or is the new list operation tail a bit unlogical? The head operation gives me as expected the first object of a list. The tail operation gives me the rest of the list. Not what I would expect because I would have expected the last object of that list.

Example, lets say I have list of 100 objects then the head operation gives me the first object and the tail operation gives me a list of the other 99 objects. But this can easily be achieved by substracting the head from my original list so I would not need a special operation for that. I see far more use cases when I want to have the last object of my list.

Again it me be just me that find this new operation not what I would have expected.

Regards,

Ronald

[EDIT]

Thanks for the clarification. I had a dog in mind :) When working with lists I often use the head and last and almost never use the tail and init.


Viewing all articles
Browse latest Browse all 82362

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>