Re:New language features since Java 8 to 17
by kayodelycaon on Sunday October 24, 2021 @04:56PM
(#28981821)
I don’t think Ruby or Python have linked lists, only arrays.
[ Parent
| on HN ]
Re:New language features since Java 8 to 17
by mattnewton on Sunday October 24, 2021 @05:10PM
(#28981951)
Ruby and python only have an equivalent to Java’s “array list.” It’s not in the standard library, but you can trivially make linked list nodes yourself if the problem calls for it; I don’t remember encountering a need for the data structure over the built in array-list type outside of interview questions anyways.