Function linkedlist-from-vecpub
Source:fn(pub) linkedlist-from-vec ( (Vec elem) → (LinkedList elem) )
Description
Convert a (Vec elem) to a (LinkedList elem), preserving order. Free fn rather than method because method dispatch on (Vec elem) would collide across VecDeque, LinkedList, BinaryHeap et al. Runtime identity cast — the underlying cell is already a Vec.