Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UList #6

Open
bleudev opened this issue May 22, 2024 · 0 comments · May be fixed by #46
Open

UList #6

bleudev opened this issue May 22, 2024 · 0 comments · May be fixed by #46
Assignees
Labels
new class New class new feature New feature
Milestone

Comments

@bleudev
Copy link
Member

bleudev commented May 22, 2024

Add useful lists for simplification working with lists

first item is 1! (not 0)

l = UList(1, 9, 2)
l[1] # 1 not 9

l += 1
print(l) # [2, 10, 3]

l += [1,]
print(l) # [2, 10, 3, 1]

l2 = -l
print(l2) # [1, 3, 10, 2]

l3 = UList(2, 10, 9, 1)
print(l & l3) # [2, 10, None, 1]
print(l | l3] # [2, 10, 3, 9, 1]

And more!

@bleudev bleudev added new feature New feature new class New class labels May 22, 2024
@bleudev bleudev added this to the 1.0 milestone May 22, 2024
@bleudev bleudev self-assigned this May 22, 2024
@bleudev bleudev added this to Ufpy May 22, 2024
@github-project-automation github-project-automation bot moved this to ⚠ To-Do in Ufpy May 22, 2024
@bleudev bleudev linked a pull request Jul 24, 2024 that will close this issue
@bleudev bleudev linked a pull request Jul 24, 2024 that will close this issue
@bleudev bleudev moved this from ⚠ To-Do to 🏭 In progress in Ufpy Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new class New class new feature New feature
Projects
Status: 🏭 In progress
Development

Successfully merging a pull request may close this issue.

2 participants