Created
February 9, 2016 15:38
-
-
Save sashaafm/fe163d290887a665ebea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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