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

Deque::truncate run failed when len < 0 #1481

Open
illusory0x0 opened this issue Jan 14, 2025 · 0 comments
Open

Deque::truncate run failed when len < 0 #1481

illusory0x0 opened this issue Jan 14, 2025 · 0 comments

Comments

@illusory0x0
Copy link
Contributor

test {
  let d = @deque.from_array([1,2,3,4,5])
  d.truncate(-1)
  println(d)
}

we might need handle len < 0 or use UInt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants