push

fun push(value: T): LinkedList<T>

Adds an element to the first position in the list a.k.a the head Time complexity O(1)

Return

LinkedList so that you can chain more push calls

Parameters

value

T