main.m346 chars12 lines
Here, we define a function add_to_queue
that takes two input arguments: in_queue
(the queue which we want to add an element to) and elem
(the element that we want to add to the queue). The function then appends the elem
to the end of the in_queue
, and outputs the updated queue as out_queue
.
gistlibby LogSnag