You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example taken from my code in another issue (#30).
iex>Todo.gen()|>Enum.take(1)|>IO.inspect()|>conform(coll_of(Todo.s()))[%Todo{what: "Watch movie",when: "Sun",who: #MapSet<[%Person.Student{name: "Prudence",school: "Academy of the Unseen Arts"},%Person.Programmer{languages: #MapSet<["Elixir", "Elm", "Haskell"]>,name: "Chris",university: %Algae.Maybe.Nothing{}}]>}]{:ok,[%Todo{what: "Watch movie",when: "Sun",who: [%Person.Student{name: "Prudence",school: "Academy of the Unseen Arts"},%Person.Programmer{languages: ["Elixir","Elm","Haskell"],name: "Chris",university: %Algae.Maybe.Nothing{}}]}]}
Issue seems to be when MapSets are nested inside other collections (including lists). For example, here (after revising the code) only languages is expected to be a MapSet:
I've opened a PR that should address these issues. While I was in there I also added more docs around coll_of. That function does a lot more then we've really shown.
Example taken from my code in another issue (#30).
Issue seems to be when MapSets are nested inside other collections (including lists). For example, here (after revising the code) only
languages
is expected to be a MapSet:The text was updated successfully, but these errors were encountered: