ash-project / spark

Tooling for building DSLs in Elixir
MIT License
105 stars 23 forks source link

Support multiple function clauses in anonymous functions #18

Closed doorgan closed 1 year ago

doorgan commented 1 year ago

This adds support for anymous functions with multiple clauses.

Before this change, this code would fail to compile:

argument fn
  "foo" -> "bar"
  _ -> "default"
end

Contributor checklist

zachdaniel commented 1 year ago

🚀Thank you for your contribution🚀