Skip to main content

All Questions

4 votes
4 answers
905 views

When should tuples be used as an argument instead of an array?

I hope this isn't too off-topic/opinion-based, I'm new here. I want to pass three elements of the same type into a function. The three elements are unique cards of a deck of cards, so they're not ...
dve.exe's user avatar
  • 59
1 vote
2 answers
610 views

Are there any use cases for List when Deques and Arrays are available?

I've been thinking about this over the past few weeks, and I've come up with no good arguments. My perspective is from Java, but if anyone has any language-specific cases outside of this language, I'...
ndm13's user avatar
  • 229