The style usually used in Elixir for the case when a `fn` is the last argument is this:

```
Enum.any? suffixes, fn suffix ->
  len = String.length(suffix)
  suffix == String.slice(string, string_len - len, len)
end 
```

Just a nitpick, you can ignore it.