Skip to main content
6 votes
2 answers
307 views

The formal description of the comma operator (,) is: As a binary operator, the comma creates an array or appends to the array being created. In expression mode, as a unary operator, the comma creates ...
iRon's user avatar
  • 24.7k
2 votes
1 answer
66 views

I am writing a library function to split an enumeration into multiple spans of enumerations but am running into an inexplicable issue with the enumerator from linq Select clause. Please see ...
JohnC's user avatar
  • 367
0 votes
1 answer
129 views

Without using index I was able to destructure the first and second elements of an Array of Arrays like so: [ [ 1, 2 ], [ 3, 4 ] ].each do |first, second| puts second end #=> 2 #=> 4 I then ...
Joshua Pinter's user avatar
3 votes
1 answer
132 views

Does the creation of an object of type IEnumerable<T> (such as the numbers object of type IEnumerable<int> in the below code example) imply the creation of an object on the heap that has ...
Amos Egel's user avatar
  • 1,240
1 vote
0 answers
23 views

I have a question regarding COM object output saved to a variable in PowerShell: $netShare = New-Object -ComObject HNetCfg.HNetShare $connections = $netShare.EnumEveryConnection $connectionsProps = $...
loxia_01's user avatar
3 votes
1 answer
255 views

Consider this example: List<int> l = [1, 2, 3, 4, 5]; void DoSomethingWith(IEnumerator<int> e) { Console.WriteLine(e.MoveNext()); Console.WriteLine(e.Current); } using(var e = l....
rabejens's user avatar
  • 8,262
0 votes
1 answer
268 views

I have a query object in my application that filters data with Array#select method class QueryObject def call(filters) data = get_data # returns array data = by_param1(data, filter[:param1])...
3kpvc's user avatar
  • 23
3 votes
2 answers
589 views

This may be a dumb question so please be kind LOL. I'm trying to wrap my head around something I just ran into. First I have a HashTable that I can enumerate using the following: $ht = [hashtable]@{&...
Matthew McDonald's user avatar
1 vote
1 answer
121 views

I'm implementing a few custom enumerators for my data model, e.g. struct Land { // … let council: Council let size: Int } extension Collection<MyModel> { func lands(in council: Council, ...
Heuristic's user avatar
  • 5,391
0 votes
1 answer
523 views

I am transferring data from folder(contains CSV Files) to SQL Server database using FOR EACH LOOP Container in SSIS. That works well in SSIS but it is giving me an error while running as SQL Jobs or ...
Ishani's user avatar
  • 3
1 vote
3 answers
120 views

I had a code: var result = BOBase.Search(Mapper.SourceBrowserType, searchCriteria); var list = new List<IBO>(result.OfType<IBO>()); But I need to be able to add many elements in a list. I ...
vytaute's user avatar
  • 1,548
3 votes
1 answer
97 views

If you have an enumerator and some callable (proc/lambda/method) it is sometimes handy to compose them to create a new enumerator, like this class Enumerator def compose func Enumerator.new do |...
Max's user avatar
  • 22.6k
0 votes
1 answer
367 views

I'm building a new project with Rails 7 and MongoDB 8. And I wanted to use enumerators for multiple fields ( states etc .. ) I wanted to use the gem mongoid-enum but it doesn't work with Mongo 8. Is ...
LovlsGenesis's user avatar
1 vote
1 answer
279 views

I have an Enumerator<T> as input, a mapping function that converts a T to an S, and I want to deliver an Enumerator<S> containing the results of the mapping. The mapping function is ...
Michael Kay's user avatar
0 votes
1 answer
118 views

Hi I am trying to extract a value from a Netsuite hash inside custom fields, and some others, which typically look like this - ` "custbody_delivery_ticket_number"=> { "script_id&...
Paul Anthony McGowan's user avatar

15 30 50 per page
1
2 3 4 5
28