Skip to content

Instantly share code, notes, and snippets.

@sashaafm
Created February 9, 2016 15:38
Show Gist options
  • Save sashaafm/fe163d290887a665ebea to your computer and use it in GitHub Desktop.
Save sashaafm/fe163d290887a665ebea to your computer and use it in GitHub Desktop.
@spec insert_with_priority(list(tuple()), tuple()) :: list(tuple())
def insert_with_priority(queue, {_item, _prio} = elem) do
queue ++ [elem]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment