Retrieve the first element from list

first(lst)

Arguments

lst

the list to which the first element will be returned

Value

the first element

Details

Retrieve and return the first element from a list. This lispy style function uses indexing under the hood but exposes the process as a function call.

Author

Jay Morgan

Examples