Most voted "slice" questions
12 questions
Sort by count of
-
6
votes2
answers112
viewsWhen is an Slice data copied?
When I do so: a = [ 1, 2, 3] b = a[1:] b use the same list of a or it creates another list and copies the data that is pertinent? If you have many items it will slow down? Happens even if I don’t…
-
5
votes3
answers139
viewsLists within lists: Even when sliced, there is connection between lists
I’m studying lists and there’s a behavior I don’t understand. I know that when I equate one list with another, a connection between them is created. And that when I slice a list, I create a copy of…
-
4
votes1
answer221
viewsCapacity of schools in Golang
One Slice can vary with the need and can add items to it, right? It is possible to view the size and its capacity (len and cap, respectively). In the tour by Go, there is a "lesson" from append,…
-
2
votes2
answers2040
viewsHow to remove the position of an array with jquery
I am trying to remove a position from the array with Slice, so I can only take it with the position of this array, could I take it for value? Because the position of the array changes a lot in each…
-
1
votes2
answers53
viewsHow I take information from within an Array from the index
In this example I already have the numbers of indexes of elements within an Array, but with these numbers I need to get the information out of the Main Array. This amount of indexes is variable, so…
-
0
votes1
answer40
viewsI always want to delete the first index every time I click a button. How do I do it?
Seen what I tried: <html> <body> <script> var nome = ['1', '2', '3', '4', '5', '6', '7', '8', '9']; var remover = nome.slice(0); function shuffle(array) { return…
-
0
votes1
answer164
viewsHow to clone array
I’m wandering about on a way to make sure that as all elements of the array in question, go all over again. See this my source code below: Code <html> <body> <button…
-
0
votes3
answers2778
viewsSeparate data from a txt file
I have a relatively large file of data, which I removed from a time-stamping machine, but it comes in the following way: 00003000527005792012635570932000219305130720170713…
-
0
votes1
answer33
viewsExluir text using python on pandas
I am manipulating a dataframe where a field has contents as for example: 123.456[7]. I need to get the start character sequence of this field without the substring [7], and then remove the . and…
-
-1
votes1
answer317
viewsHow to find the largest and smallest element of an Array/Slice in Go?
Hi, guys! I would like some help. How could I find the smallest and largest element of an Array/Slice in Go? Is there a standard library function that already does this? If not, could you show me…
-
-1
votes1
answer31
viewsstring.Slice() returns empty string
I’m trying to make a system of putting words together, and I thought I’d use the .slice(). But it returns an empty string. I have already searched but no one has explained it properly. I have two…
-
-2
votes1
answer38
viewsHow can I remove 'R$ xa0' from a obtained result?
I am collecting data from a particular site, where when collecting some values I am facing some difficulties and would like to help to solve. I have the following code: valores =…