#Protocols
2 notas · última:
Understanding Protocols
A question about turning a generic reduce function into an Elixir protocol leads to an explanation of lexical import and why protocol calls must be made explicitly to dispatch across implementations.
Simple Sliding Windows in Elixir
The post builds sized and timed sliding windows in Elixir, then refactors them behind a Windowable protocol and Enumerable implementations so both types share a common API.
