Jump to content

Singly-linked list/Reversal: Difference between revisions

m
Line 48:
 
=={{header|Julia}}==
Modern processors with large caches and fast memory access for ordinary listsvectors and databases for more larger types of data structures have made linked lists nearly obsolete. In Julia, arrays are almost always preferred to linked lists. A linked list class is available in the DataStructures.jl package. The code below is abridged from that module, which can be read in its full form at https://github.com/JuliaCollections/DataStructures.jl/blob/master/src/list.jl.
<syntaxhighlight lang="julia">abstract type LinkedList{T} end
 
4,107

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.