Garden 🌻

List::last

Get the last item in this list, if the list is not empty.

Source Codepublic method last<T>(this: List<T>): Option<T> {
  this.get(this.len() - 1)
}