Retorne o último elemento
Retorne o último elemento de um array ou o último caractere de uma string. Retorne nil quando a entrada estiver vazia.
Exemplos
last_item([0, 4, 19, 34, 50, -9, 2]) ⟞ 2
last_item("The quick brown fox jumped over the lazy dog") ⟞ "g"
last_item([]) ⟞ nilNotas
Os arrays e as strings podem ter tamanhos variados.