# last

## Description
Returns the last element of a collection

## Parameters

<dl>
  <dt>coll</dt>
  <dd>Collection of values to be returned only the last one.</dd>
</dl>

## Examples

```php
<?php

use function Lambdish\Phunctional\last;

return last([1, 2, 3, 4, 5]);

// => 5
```
