Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
3 votes
4 answers
173 views

I'm trying to get the result code from a running a file search in a powershell function. I'm using .NET for efficiency, and I don't want to compromise that. Now I am trying to obtain some kind of ...
2 votes
1 answer
116 views

Why does this code work? for (const i in undefined) {} From for...in - JavaScript | MDN: The for...in statement iterates over all enumerable string properties of an object (ignoring properties keyed ...
0 votes
1 answer
75 views

I am trying to make a FizzBuzz in Ruby based on an enumerable. It works when I inline the calculation: numb_array = (0..100) numb_array.select { |numb| if numb % 2 == 0 && numb % 3 == 0 ...
0 votes
1 answer
202 views

I'm trying to make an @enumerable decorator that will expose properties defined via accessor methods. A function to do this on instances of the class is fairly trivial: // This works great when called ...
0 votes
3 answers
123 views

I am trying to develop a more object oriented approach to my programming but have run into a problem. I thought it would be useful to group related properties in an object together with methods that ...
0 votes
2 answers
178 views

I need to merge two enumerables while keeping the relative order of items as defined in the source enumerables. For example, if enumerable1 contains "foxtrot", "uniform" and "...
wexman's user avatar
  • 1,305
0 votes
1 answer
758 views

I am trying to add an element into an instance of array by using push(<<) to insert variables new_name and new_origin into ingredients array but I am receiving this error: undefined method `name'...
0 votes
1 answer
88 views

I'm trying to map an object containing enumerable collections of strings into an object containing an enumerable collection objects whose properties contain the data in those collections. Consider the ...
Kaine's user avatar
  • 589
8 votes
1 answer
6k views

I don't understand what Intellisense is suggesting as a replacement for my existing code (pictured here) In case the image gets deleted later, the Intellisense suggestion that is pictured suggests ...
0 votes
0 answers
58 views

As mentioned in this other post, there are two ways to alter the direction of the ordering of a C# List (or any Enumerable): use the OrderByDescending() method. add .Reverse() at the end. In my code,...
0 votes
4 answers
336 views

I want to extract two foreach ́s which iterate over mostly the same list but one has an early exit if one element is not valid and the other will only be executed if the other collected the data ...
0 votes
0 answers
50 views

I have a Dictionary<int, string[]>. And I want to know, if with the functions of Enumerable/Collection it's possible to get in one line "approximatly", to regroup all string[] value in ...
0 votes
3 answers
152 views

I want to fill the list with factorials using linq. I got this, this works up to 12. I assume it's because of the integer range. But I couldn't retype it to double. Can this be easily modified (...
-3 votes
1 answer
39 views

He have a text with a numeric list and he would like a regex for have each items in a array. For give an exemple : text= "Bien sûr, voici trois idées d'articles qui pourraient être intéressants ...
3 votes
4 answers
262 views

I have an array of rectangles. Some of them might intersect, forming a pair: While others might intersect, forming a chain: And, of course, some of them might be alone. I want to form a list that ...

15 30 50 per page
1
2 3 4 5
...
41

AltStyle によって変換されたページ (->オリジナル) /