MCPcopy
hub / github.com/reflex-dev/reflex / reverse

Method reverse

packages/reflex-base/src/reflex_base/vars/sequence.py:98–104  ·  view source on GitHub ↗

Reverse the array. Returns: The reversed array.

(self)

Source from the content-addressed store, hash-verified

96 return array_join_operation(self, sep)
97
98 def reverse(self) -> ArrayVar[ARRAY_VAR_TYPE]:
99 """Reverse the array.
100
101 Returns:
102 The reversed array.
103 """
104 return array_reverse_operation(self)
105
106 def __add__(self, other: ArrayVar[ARRAY_VAR_TYPE]) -> ArrayVar[ARRAY_VAR_TYPE]:
107 """Concatenate two arrays.

Callers 10

app_logsFunction · 0.80
reversedMethod · 0.80
_cached_var_nameMethod · 0.80
indexFunction · 0.80
test_basic_operationsFunction · 0.80
test_index_operationFunction · 0.80
test_array_operationsFunction · 0.80
test_mutable_listFunction · 0.80
get_migration_historyFunction · 0.80

Calls 1

array_reverse_operationFunction · 0.85

Tested by 6

indexFunction · 0.64
test_basic_operationsFunction · 0.64
test_index_operationFunction · 0.64
test_array_operationsFunction · 0.64
test_mutable_listFunction · 0.64