pop function:

  • Can also be called as pop_last

Pop the last item from a list. If the argument is a list, will return the list without it's last argument.

Examples:

  • running: (pop [1, 2, 3, 4]) will give: [1, 2, 3]

  • running: (pop []) will give: []

  • running: (pop false) will return nothing