[Proposal] Add missing List.ends_with?/2

20 views
Skip to first unread message

eksperimental

unread,
Dec 31, 2018, 6:34:29 AM12/31/18
to elixir-l...@googlegroups.com
Hello list,
I would like to propose the addition of the missing function `List.ends_with?/2`

At the moment we have `List.starts_with?/2`.

Use case?
Strings have `String.ends_with?/2` and `String.starts_with?/2`, but when working with charlists we
only have `List.starts_with/2`.

And implementation can be found in
https://github.com/eksperimental/elixir/tree/list_ends_with

What do you think about adding it?
Reply all
Reply to author
Forward
0 new messages