Giter Club home page Giter Club logo

Comments (2)

devonestes avatar devonestes commented on June 22, 2024 1

Yeah, I guess technically that's correct and we could do that. However, I do like to see some of the less frequently used parts of Elixir used occasionally. After going through all the exercises over the last couple of days I've noticed that someone can make their way through the entirety of the Elixir track on here and not even touch a good chunk of the language. Things like this I think might be helpful in exposing users to new things to check out - in this case, MapSet.

However, since there is a simpler way of expressing this, exposing these language features in this way might be counterproductive. I'm totally open to discussion from others on if we should refactor that in the way you propose, but I think a good first step is just getting rid of the deprecation without refactoring since we know for sure that's gotta go.

from elixir.

martinsvalin avatar martinsvalin commented on June 22, 2024

I had a quick look, as I didn't recall this exercise had anything to do with sets. It seems we're using sets to ignore order in the lists. Seems simpler to have the helper be something like

def assert_same_elements(actual, expected) do
  assert Enum.sort(actual) == Enum.sort(expected),
         "Expected #{inspect actual} to have the same elements as #{inspect expected}"
end

from elixir.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.