Skip to main content

Questions tagged [lambda]

Use this tag if you would like to discuss the appropriateness of a lambda (anonymous) function in your code.

3 votes
1 answer
106 views

Previously I wrote a very generic HTTP handler. But in real life the server needs to be able to handle different functions on different paths. i.e. /rest/addUser ...
Loki Astari's user avatar
  • 97.7k
5 votes
0 answers
101 views

Background I have an ongoing challenge in Excel, where I must match differing descriptions of the same object. Originally, there were only two alternatives: Use a dropdown list in Excel, which pulls ...
Greg's user avatar
  • 569
2 votes
0 answers
50 views

This is a follow-up question for A recursive_replace_copy_if Template Function Implementation in C++. I am trying to implement recursive_replace_copy_if template ...
JimmyHu's user avatar
  • 7,575
3 votes
1 answer
131 views

I want to replace a for loop with a break/return condition inside with a lambda. I think I have a good replacement, but I want ...
Oscar Besga Panel's user avatar
1 vote
1 answer
132 views

I found that Array.Find(T[], Predicate) Method is only support one dimensional array. I am trying to generalize it to multi-dimensional array in this post. The experimental implementation The ...
JimmyHu's user avatar
  • 7,575
3 votes
1 answer
136 views

For fun I decided to try to emulate lambda functions in plain old C. It turns out it can be easily done with a bit of macro abuse. CLambda struct stores function ...
KlemenPl's user avatar
  • 225
2 votes
2 answers
156 views

All line indices of lines from a text that begin with the same line prefix should be found. The prefixes and the corresponding line numbers should be returned. Streams and lambdas should be used as ...
Tobias Grothe's user avatar
3 votes
2 answers
217 views

From all the files in a directory, the method shiftFilenamesOffset is to increment the numeric part (int) of the alphanumeric filename by offset each time, and ...
Tobias Grothe's user avatar
2 votes
1 answer
94 views

I have this OCaml problem: Recall the polymorphic type lazy seen in class, the function delay which transforms a ...
V_head's user avatar
  • 575
4 votes
0 answers
112 views

If you'd like to print this: ...
candied_orange's user avatar
0 votes
3 answers
330 views

If you'd like to print this: One Two Three Four 1 2 3 4 using this: ...
candied_orange's user avatar
4 votes
1 answer
314 views

If you'd like to print this: One Two Three Four 1 2 3 4 using this: ...
candied_orange's user avatar
4 votes
2 answers
578 views

I wanted to play with a two-dimensional generic data container in C++ and explore different methods of traversals: using closures and iterators. I'd like a review of it. ...
nowox's user avatar
  • 1,121
3 votes
1 answer
249 views

I'm working my way through the finger exercises in John Guttag's book Introduction to Python Programming, third edition. The following finger exercise on page 143 describes encryption/decryption with ...
Wolric's user avatar
  • 133
0 votes
1 answer
606 views

Please look at the Java Stream methods in the for each loop. This method totals the score for when the your desired team is playing during the football season - input param teamKey - it is either ...
user2102346's user avatar

15 30 50 per page
1
2 3 4 5
15