Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bedroombuilds/python2rust
/ reverse
Function
reverse
03_tuples_arrays/python/tuples.py:4–6 ·
view source on GitHub ↗
(pair: tuple)
Source
from the content-addressed store, hash-verified
2
3
4
def
reverse(pair: tuple) -> tuple:
5
integer, boolean = pair
6
return
(boolean, integer)
7
8
9
from
collections
import
namedtuple
Callers
1
tuples.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected