``` val<T> List<T>.head: T get()= ...
# getting-started
s
Copy code
val<T> List<T>.head: T 
   get()= this[0]
👍 2
n
This would be like adding this to the List class ... is my understanding correct?
s
It's an extension function, so yes it "virtually" would (in practice, this is translated into a static method)
n
👍
h
It's an extension property
s
Hah, correct, my bad