# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE # Version 2, December 2004 # # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE # TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION # # 0. You just DO WHAT THE FUCK YOU WANT TO. alias Data.Protocol.Array, as: Protocol defprotocol Protocol do @type i :: integer @type v :: any @spec fetch(t, i) :: { :ok, v } | :error def fetch(self, index) @spec set(t, i, v) :: t def set(self, index, value) end