Questions tagged as 'lista'

2
answers

Does the ListT.ForEach Method exist?

I'm trying to implement the example of this page , but VS2015 (.NET 4.5) says that the ForEach() method does not exist class Program { static void Main() { List<String> names = new List<String>(); na...
asked by 15.11.2015 / 02:57
2
answers

How do I join a list in Python?

When I want to join a array in PHP, I use the function array_merge So: $a = [1, 2, 3]; $b = [4, 5, 6]; array_merge($a, $b); Result:    [1, 2, 3, 4, 5, 6] And how could I do this in Python on a list (I think...
asked by 13.08.2015 / 14:12
1
answer

Load Combobox from a List

I am trying to load items into a ComboBox from a List<> , it worked fine however, later I would need to get the code for the selected item, but it is not working. The code to load ComboBox is this: private void frm...
asked by 14.08.2016 / 17:51
3
answers

How to remove the first element from a list in python?

I have the following code: At the command line > teste.py primeiro segundo In the script teste.py : import sys print(sys.argv) And I have the following return: ['c:\teste.py', 'primeiro', 'segundo'] But I would like t...
asked by 05.02.2015 / 15:21
1
answer

Doubt between Any and All in a lambda expression in a list

In a list, I have 12 records (hypothetical) and there is a field called ValorCampoFlag , where this field receives 1 or null , for example. If I do a validation on it and the result if there is at least one with a value of 1, should...
asked by 12.02.2015 / 13:30
2
answers

In R, what is the best way to select inner list sets within a list of lists?

I have a list of lists like the following: lista <- list(num = list(1:10, 11:20, 21:30), chr = list(letters[1:13], letters[14:26], LETTERS[1:13])) I would like to make it a data.frame , but for this the two internal l...
asked by 17.11.2016 / 00:57
1
answer

Python, clone lists

Be the code below: def modif1(lista): lista = [4,5,6] lista = [1,2,3] modif1(lista) print(lista) #resultado: [1,2,3] def modif2(lista): lista[0] = 4 lista[1] = 5 lista[2] = 6 lista = [1,2,3] modif2(lista) print(lista) #result...
asked by 12.02.2017 / 21:28
1
answer

How to get data from a list only when there are two equal codes

Currently I can only get the different data from two lists, for example: Lista X Código 1 Código 2 Lista z: Código 1 Código 3 I can only get the code 2 and 3 . Now the need arises to get the same data, following the above exam...
asked by 23.06.2015 / 21:24
1
answer

Find list elements with partial strings

I have a List<string> that receives the phone number of all the contacts in the phone, until then without problem, but I want to perform operations with the elements of this list, but I have some problems. An example of a possibl...
asked by 24.09.2015 / 06:38
2
answers

Convert a list with dataframes of different rows into independent dataframes [R]

I have a list of 3 dataframes, which are derived from the split function: > split $'1' bin group1 group2 missing score1 score2 gender size score3 income city 0 1 1 NA 3 2 M S 4 1605....
asked by 21.08.2018 / 03:35