summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python/gnuradio/gru/listmisc.py
blob: a504d3ba00593b86a6a52f3621b0766d6fcbe2a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#
# 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