Re: [elixir-core:10728] Proposal: Add support for list of strings in String.{trim, trim_leading, trim_trailing}

2022-01-25 Thread José Valim
Yes, I think those would be consistent additions! -- 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 elixir-lang-core+unsubscr...@googlegroups.com. To view this

[elixir-core:10727] Proposal: Add support for list of strings in String.{trim, trim_leading, trim_trailing}

2022-01-25 Thread 'eksperimental' via elixir-lang-core
Hello everyone, Currently the second argument of funtions String.{trim, trim_leading, trim_trailing}/2 can only be a string. I would like Elixir to support a list of strings to be trimmed, such as: String.trim_leading(tag_name, ["OTP_", "OTP-"]) There is a precedent of other functions takin

Re: [elixir-core:10727] Re: Wrapper for receive block.

2022-01-25 Thread Mateusz Front
> Can you help me understand why the patterns themselves need to be passed to your `await` function? Because that way you can't `await` for a particular pattern ;) For example, we have a concept of playback states. One could need to wait until the playback state changes, so they could do `awai