tagged [list]
How do I find a list of Homebrew's installable packages?
How do I find a list of Homebrew's installable packages? Recently I installed [Brew](https://brew.sh/). How can I retrieve a list of available brew packages to install?
- Modified
- 4 Aug at 05:45
How to create a drop-down list?
How to create a drop-down list? How can I create a drop-down list? I've tried a ScrollView but it's not exactly what I need.
- Modified
- 13 Apr at 19:39
Python Array with String Indices
Python Array with String Indices Is it possible to use strings as indices in an array in python? For example:
- Modified
- 22 Sep at 02:14
Compute list difference
Compute list difference In Python, what is the best way to compute the difference between two lists? example
Convert List<string> to ArrayList
Convert List to ArrayList Who knows the easiest way to convert a `List` of strings to an `ArrayList`? I tried setting `(ArrayList)` before the code but this doesn't do anything.
How to get the first element of the List or Set?
How to get the first element of the List or Set? I'd like to know if I can get the first element of a list or set. Which method to use?
- Modified
- 12 Mar at 03:20
How do I find the duplicates in a list and create another list with them?
How do I find the duplicates in a list and create another list with them? How do I find the duplicates in a list of integers and create another list of the duplicates?
- Modified
- 17 Jul at 09:28
Can LINQ ForEach have if statement?
Can LINQ ForEach have if statement? Is it possible to add `if`-statement inside LINQ `ForEach` call?
- Modified
- 4 Jul at 03:34
Find a KeyValuePair inside a List
Find a KeyValuePair inside a List Suppose I have I know the string but I want to find its integer. How do I find the keyvaluepair inside this List?
C#: params keyword vs. list
C#: params keyword vs. list What are the pro/cons of using the params keyword vs. a List as input to some c# function? Mainly what are the considerations and other trade offs.
- Modified
- 22 Jan at 01:29
How to find all duplicate from a List<string>?
How to find all duplicate from a List? I have a `List` which has some words duplicated. I need to find all words which are duplicates. Any trick to get them all?
- Modified
- 23 Sep at 20:3
Calculating arithmetic mean (one type of average) in Python
Calculating arithmetic mean (one type of average) in Python Is there a built-in or standard library method in Python to calculate the arithmetic mean (one type of average) of a list of numbers?
How would I distinct my list of key/value pairs
How would I distinct my list of key/value pairs If I have a list `List>`ex. how can I distinc this list?
How do I create a list with numbers between two values?
How do I create a list with numbers between two values? How do I create an ascending list between two values? For example, a list between 11 and 16:
Check if list is empty in C#
Check if list is empty in C# I have a generic list object. I need to check if the list is empty. How do I check if a `List` is empty in C#?
- Modified
- 25 Aug at 19:38
List<T> or IList<T>
List or IList Can anyone explain to me why I would want to use IList over List in C#? [Why is it considered bad to expose List](https://stackoverflow.com/questions/387937)
Auto-initializing C# lists
Auto-initializing C# lists I am creating a new C# List (`List`). Is there a way, other than to do a loop over the list, to initialize all the starting values to 0?
- Modified
- 24 Sep at 14:12
How do I check if there are duplicates in a flat list?
How do I check if there are duplicates in a flat list? For example, given the list `['one', 'two', 'one']`, the algorithm should return `True`, whereas given `['one', 'two', 'three']` it should return...
- Modified
- 2 Apr at 11:29
PHP Get all subdirectories of a given directory
PHP Get all subdirectories of a given directory How can I get all sub-directories of a given directory without files, `.`(current directory) or `..`(parent directory) and then use each directory in a ...
- Modified
- 11 Jan at 09:56
Python set to list
Python set to list How can I convert a set to a list in Python? Using doesn't work. It gives me:
How can I convert comma separated string into a List<int>
How can I convert comma separated string into a List This doesn't work cause the split method returns a string[]
Fast/efficient way to get index of minimum value in List<T>?
Fast/efficient way to get index of minimum value in List? Is there any way to find minimum value index more efficient/faster than this?
- Modified
- 1 May at 17:41
What are the advantages of list initialization (using curly braces)?
What are the advantages of list initialization (using curly braces)?
- Modified
- 28 May at 06:47
How Big can a Python List Get?
How Big can a Python List Get? In Python, how big can a list get? I need a list of about 12000 elements. Will I still be able to run list methods such as sorting, etc?