Singly-linked list/Element definition: Difference between revisions

Added Clean example
(Added Clean example)
Line 53:
 
Note that the generic version works for any type, not only integral types.
 
==[[Clean]]==
[[Category:Clean]]
import StdMaybe
:: Link t = { next :: Maybe (Link t), data :: t }
 
==[[Delphi / Object Pascal / Turbo Pascal / Standard Pascal]]==
Anonymous user