Skip to main content
2 votes
1 answer
97 views

How can I obtain the return type of a lambda method in Java?

I'm trying to get the class of the generic type <T> in my Java code. I am using Alibaba's FastJSON for JSON processing. Below are the key parts of my code: Caller: public Features ...
finger's user avatar
  • 39
1 vote
2 answers
62 views

Designing function API to avoid object lifetime problems

I've got a function that returns a lambda. auto make_scanner(std::vector<int> const &v) { auto begin = v.cbegin(); auto end = v.cend(); return [begin, end] () mutable -> int { ...
Adrian McCarthy's user avatar
-2 votes
1 answer
73 views

C++: What if a lambda expression captures a r-value by reference [duplicate]

I am trying to work with the lambda expression to wrap some functions to void() ones. The code is as follows: class VoidFunctionWrapper { public: VoidFunctionWrapper() { function_ = [](...
Christ Liu's user avatar
0 votes
0 answers
16 views

Ping OAuth Token Validation

I am using Ping OAuth authentication for some custom APIs endpoint. We have get token API https://example.com/auth/as/token.oauth2 for external services to get token and make call to our custom API ...
K P's user avatar
  • 13
0 votes
1 answer
51 views

Async lambda expression not compiling

I have a lambda expression with a Select where a new ResourcesResponse.Resource object is created. The Resource object has a calculated Order field which calls an async repository method called ...
Diego Perez's user avatar
  • 2,670
0 votes
1 answer
80 views

Multiple parameters in Lambda function in excel [closed]

In excel, is there a way to create Lambda Functions that can accept any number of parameters in the end? Like TextJoin function, where the first two parameters are fixed and then from the third ...
The King's user avatar
  • 4,618
0 votes
3 answers
81 views

Can a method access the caller's local variable?

I'd like my output to use singular nouns, when the reported quantity is one. Currently I keep doing things like: logger.debug("Got {} row{}", rows, rows == 1 ? "" : 's'); but that ...
Mikhail T.'s user avatar
  • 3,748
0 votes
2 answers
102 views

Classes defined by using lambda in Java [duplicate]

I had a test on OOP in Java and they asked how many classes are defined by the code below. The question is about the lambda expression in this code. The lambda expression initiates an anonymous class, ...
TYC's user avatar
  • 3
1 vote
2 answers
65 views

Excel LET LAMBDA function to return category percentile rank

I am working with this data set: ids Cat Val u1 u 1 u2 u 2 g3 g 3 g4 g 4 g5 g 5 i6 i 6 i7 i 7 i8 i 8 i9 i 9 i10 i 10 I need the the percentile ranks for categories of my IDS. I need to ...
barszczula's user avatar
0 votes
0 answers
38 views

Properties in Lambda Handler appearing being set to null

Why are the properties in my message getting set to null? When I produce a message to my Kafka topic, I can see the messages with properties assigned in the MSK Kafka UI. When I print out the ...
kickinchicken's user avatar
-1 votes
2 answers
52 views

Having an item in a list randomly select an item from another list whenever it is randomly selected from the first

I am trying to write a function that generates a random name by selecting a first name from one list and a last name from another list. I want the last item in the last name list to randomly select an ...
unnatural_redhead's user avatar
1 vote
1 answer
31 views

Can I embed a video data in a webpage and later access the video from the web page?

My question may sound a bit wired but I do have legitimate use. I am using a Lambda function to process incoming short video files (100-200KB), and package the video using Dash/Hls. The packaging ...
SamTest's user avatar
  • 475
0 votes
1 answer
45 views

Excel LET function to return filtered values of various size based on a criteria row by row

I am working with this data set: What I need is to return the list of values corresponding to to each unique category. Seems straight forward and I generated this using excel formula =TRANSPOSE(...
barszczula's user avatar
1 vote
1 answer
78 views

How GHC captures the enviroment of variables when lambda expressions are used by value or by reference?

In this stackoverflow post there is code in C++ that tries to mimic associated types. When the lambda functions capture the environment(closure) using by reference capture the code compiles but fails ...
Dragno's user avatar
  • 3,125
0 votes
0 answers
38 views

Pydeequ - Serialize Lambda function

I'm trying to call deequ's rowLevelResultsAsDataFrame function from pydeequ. Things work fine but as soon as I add a lambda function to the Verification Suite checks, I start getting serialization ...
xuxu's user avatar
  • 768

15 30 50 per page
1
2 3 4 5
2009