{"version":"1.0","type":"rich","title":"fizzbuzz example using elixir pattern matching","description":"This example demonstrates the classic FizzBuzz problem solved through Elixir’s pattern matching. It maps over a list of numbers with `Enum.map`, applying a private `parse` function that uses a `case` expression on a tuple of remainders from `rem(n, 3)` and `rem(n, 5)`. The code returns `:FizzBuzz`, `:Fizz`, `:Buzz`, or the original number based on matched remainders. No external libraries are used; the logic relies solely on Elixir’s built-in functions and pattern matching syntax.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-9e08b2bc0875cd00ffaf?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}