nonempty icon indicating copy to clipboard operation
nonempty copied to clipboard

Correct by construction non-empty list

Results 17 nonempty issues
Sort by recently updated
recently updated
newest added

I started using your library but noticed that `sort` was missing and #29 was open. I'm pretty new to rust so let me know if I could improve it.

`.remove(0)` has to copy all elements back, but I'm wondering if ordering could be sacrificed by using `swap_remove` instead, or another method construction method that uses `swap_remove`

We should flesh out the functionality of `nonempty`. A lot of it would just be the `Vec` implementation. Enumerating these for clarity and also to comment on which ones we...

"FromInterator" -> "FromIterator" and added link to docs for FromIterator

Currently includes #69

Could you please add Git tags into the repo corresponding to the crates.io releases? It would be helpful for reviewing the changes when upgrading.

I'm using nonempty crate for managing vulkan buffers. They can't be zero sized, so nonempty is quite useful. I'm using NonEmpty's capacity as a size of new buffer. I currently...

It should be possible to index a `NonEmpty` with a `Range{,From,To,Full}`: ```rust fn foo(a: Vec, b: NonEmpty) { let _ = a[5..]; let _ = b[5..]; // mismatched types expected...

It fixes https://github.com/cloudhead/nonempty/issues/68 I hope using `vec![]` should not be a big problem, cause `vec![]` is already used in another branch of the macro. Thank you again for you work!