# 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. defprotocol Data.Array do @type i :: integer @type v :: any @spec get(t, i) :: v def get(self, index) @spec get!(t, i) :: v | no_return def get!(self, index) @spec set(t, i, v) :: t def set(self, index, value) end