question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issues with List<> insert\remove\get

See original GitHub issue

List<> insert\remove\get methods not working correctly. Have been trying to fix this, but no luck.

List<char> list = new List<char> {'1','2','3','4','5','6','7','8','9','0'};

list.Insert(5, ‘a’) returns ‘12345a12345’ instead of ‘12345a67890’ list.GetRange(3,5) returns similar invalid data. list.RemoveAt(4) returns similar invalid data. list.RemoveRange(4, 3) blows up.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jp2masacommented, Jul 14, 2017

This is a bug related to arrays I think. I can try fixing this today.

0reactions
quajakcommented, Dec 18, 2022

This should be fixed now

Read more comments on GitHub >

github_iconTop Results From Across the Web

Time complexity of operations in SortedList - Python
1 Answer 1 ... Insert, remove, get index, bisect right and left, find element inside list, are all log(n) operations. Its similar to...
Read more >
Linked List Explanation Flat Assembler Please? [closed]
A (singly) linked list is composed of nodes that point to each other ... insert, remove, get, and delete (delete the entire list,...
Read more >
singly-linked-list
Create a library in C with collection of functions (create,insert,remove,get,add,append,destroy,iterate,clear,getSize) All those functions capable of ...
Read more >
singly-linked-list
Simple generic singly linked list module for in-memory storage of small amounts of data. ... Solved problems in Java related to common data...
Read more >
how to copy the every element in first list to second list
I have one question how to add all elements in first list to second list like. ... The API for an ArrayList will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found