ref-type 1.0.0

Creator: bradpython12

Last updated:

Add to Cart

Description:

reftype 1.0.0

Referencable objects in Python.
from ref_type import ref


ref1: ref[int] = ref(1)
ref2: ref[int] = ref(1)


def add(r1: ref[int], r2: ref[int]) -> None:
r1 += r2


add(ref1, ref2)

print(ref1) # => 2
Use .get() to get value, .ilshift(X) to do LeftShiftEquals.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.