Hi, List.starts_with?/2 have recently been introduced https://github.com/elixir-lang/elixir/pull/5789
I was working on improving the specs and the code, and I have realized there are a few issues I would to work on. Initially would like to to know whether we should support improper lists, that would determine how the code can be optimized. I would say yes, we should support improper lists. But we also need to keep in mind that we will probably will end up adding List.ends_with?/2 too, so we need to keep that in mind If we support improper lists, prefix could be any term, not just a list. -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/20170221213857.6c3a8f4f.eksperimental%40autistici.org. For more options, visit https://groups.google.com/d/optout.
