def dequeue(interp, queuename):
    """
    DEQUEUE queuename

    outputs the least recently QUEUEd member of the queue that is the
    value of the variable whose name is ``queuename`` and removes that
    member from the queue.
    """
    var = interp.get_variable(queuename)
    return var.pop(0)