Well, I meant that elements from original list will stay intact. If you are first applying List.map toUppercase and then sort, resulting list will contain uppercased letters which may be undesirable.
In my solution resulting list will contain same elements as the original one sorted in case-insensitive manner. I see this difference as significant and necessary. суббота, 10 сентября 2016 г. пользователь Max Goldstein написал: > not changing original list > > > An an immutable language such as Elm, nothing can change the original > list! I think you've more-or-less implemented List.sortBy explicitly, which > is instructive, but not really necessary. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Elm Discuss" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/elm-discuss/IwSIlRUoNFw/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected] > <javascript:_e(%7B%7D,'cvml','elm-discuss%[email protected]');> > . > For more options, visit https://groups.google.com/d/optout. > -- Sergey Zubtsovskiy [email protected] Skype: szubtsovskiy -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
