Singly-linked list/Element definition: Difference between revisions

Content deleted Content added
No edit summary
Rdm (talk | contribs)
Line 183:
 
=={{header|J}}==
 
This task is not idomatic in J -- J has lists natively and while using lists to emulate lists is quite possible, it creates additional overhead at every step of the way. (J's native lists are probably best thought of as arrays with values all adjacent to each other, though they also support constant time append.)
 
However, for illustrative purposes:
 
<lang J>list=: 0 2$0