summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python/gnuradio/gru/listmisc.py
blob: b6380138e12f08d709c03bdad4de21c1b61e74af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from __future__ import unicode_literals
#
# Copyright 2005 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
#

def list_reverse(x):
    """
    Return a copy of x that is reverse order.
    """
    r = list(x)
    r.reverse()
    return r