Skip to main content
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
-11 votes
0 answers
61 views

Lambda expression without functional interface and related question [closed]

Can u write lambda function without interface? In functional interface why only one abstract method for lambda expression can't use for two or more abstract method ? one of use of lambda expression ...
Sasi Varun's user avatar
2 votes
2 answers
86 views

Excel function LAMBDA COUNTIF

=LET( Business,B6, All_nationalities,FILTER(Data[Nationality],Data[Business]=Business), Unique_nationalities,UNIQUE(All_nationalities), freq,BYROW(Unique_nationalities,LAMBDA(x,COUNTIF(...
neg's user avatar
  • 21
1 vote
2 answers
79 views

Does SONAR's cpp:S5213 rule imply that functions accepting lambdas must be implemented in the .h file?

SONAR's cpp:S5213 rule says that Template parameters should be preferred to "std::function" when configuring behavior at compile time We have tried implementing that by replacing std::...
bers's user avatar
  • 6,279
1 vote
0 answers
36 views

Mongodb not available for my AWS Lambda function

I have tried to import mongodb into my lambda function and I keep getting an error message when I attempt to test it. All the recommended resolutions I have seen assume I am working in an environment ...
Daniel DeLuca's user avatar
0 votes
0 answers
17 views

AWS Lambda with pg Pool and RDS Proxy: "Connection terminated unexpectedly" when processing SQS messages

We are using pg Pool in our Lambda function. Our connectDb function looks like this: const config = { database, user: username, password, max: max_pool, idleTimeoutMillis, ...
krishnadev's user avatar
0 votes
0 answers
36 views

How do I display my BST using my preorder() and inorder() methods?

I'm doing a programming assignment for my class. One of my programs includes creating a BST with Python within a BST class, and I'm trying to display using preorder() and inorder() functions. My ...
selena's user avatar
  • 1
3 votes
1 answer
101 views

Excel LAMBDA + spill

I've created this LAMBDA function and called it STR2ARR (note: yes, I know there are other functions in Excel that can do this, but I'm trying a concept that I want to use in a bigger LET/LAMBDA ...
Koen Rijnsent's user avatar
-4 votes
3 answers
132 views

lambda functions as higher-order functions [closed]

I'm learning about higher-order functions, specifically lambda functions in Python. I understand lambda functions to an extent, but a little confused about this lambda higher-order function example. ...
Cordev87's user avatar
3 votes
3 answers
114 views

Using Excel Lambda function to count numbers that meet a condition (in conjunction with groupby)

I am trying to write a lambda function for use in a groupby, which counts the total number of failed grades (grades below 6) for each store. However I cannot seem to figure it out. It seems that there ...
Jelmer's user avatar
  • 41
14 votes
1 answer
352 views

Why does Deducing-This lambda require `this` to be a reference or capturing variables by reference?

Why does this code output garbage on GCC like there is a UB? auto data = std::vector{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; auto output = [data](this auto self, size_t i) { if (i >= 10) { ...
Sprite's user avatar
  • 4,119
2 votes
0 answers
56 views

Rust lambda parameter passing [duplicate]

I just learned that in rust if you want to pass a reference in lambda: let player_scores = [ ("Jack", 20), ("Jane", 23), ("Jill", 18), ("John", 19), ...
Holiday Tom's user avatar
1 vote
1 answer
61 views

Diff btw "Invoke( lambda )" and directly calling a lambda when we use Google Mock EXPECT_CALL

Since I learnt to use Google Test/Mock framework, I allways used the form to setup an expectation as following: EXPECT_CALL( mock_obj, mock_method ).WillOnce( Invoke( []() { do_things; } ) ); Few ...
Leon's user avatar
  • 2,165
0 votes
1 answer
118 views

Python lambda returns 0 [closed]

Is there a simple way to return 0 with a lambda function using and and or operators? For example, consider this function to sum elements in an array: sum = lambda tab: tab == [] and 0 or tab[0] + sum(...
david's user avatar
  • 1,593
0 votes
0 answers
109 views

Connection Pooling Challenges with MongoDB and AWS Lambda

I'm facing an issue related to MongoDB connections while sending push notifications to users three times a day — morning, noon, and evening. I have a Lambda-based service that uses SQS and MongoDB. A ...
Muhammed Ladeed's user avatar
1 vote
1 answer
115 views

Trying to split parameter pack into two smaller packs using an index sequence and nested lambdas leads to weird compiler behaviors

So I was trying to come up with a way to split a given parameter pack args... into two separate packs args1... and args2... (at some specified index, 3 in this case). I also wanted to minimize the ...
Orbit's user avatar
  • 23

15 30 50 per page
1
2 3 4 5
2022
Morty Proxy This is a proxified and sanitized view of the page, visit original site.