Tag: even_length?

Write a function even_length? that uses pattern matching only to return false if the list you pass it has an odd number of elements, true otherwise.

Write a function even_length? that uses pattern matching only to return false if the list you pass it has an odd number of elements, true otherwise. This is a fun little exercise in Elixir. First we match a single item in the list (odd number) which is false. Then match

Create a website or blog at WordPress.com