List

ends_with?/2

ends_with?(list, suffix)

Returns true if list ends with the given suffix. Also if suffix is an empty list, it returns true.

Otherwise returns false.