• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 1

Lambda function error

I don't why this lambda function give error. So anyone can solve this problem . https://code.sololearn.com/c1WkeCOBXbkd/?ref=app

formatfunctionlambdastringkotlin
10th May 2022, 6:32 AM
Akash Agrawal
Akash Agrawal - avatar
1 Answer
+ 2
val add: (Double, Double) -> String = {a, b -> String.format("%.2f", a + b)}
10th May 2022, 6:59 AM
OrHy3
OrHy3 - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Can you give me suggestions on what to code please (HTML+CSS)(beginner + intermediate suggestions)
1 Votes
Please help me get xp
1 Votes
Why the output is skipping the first 0 index and starting from 1 when I put the iteration out the for loop?
0 Votes
What is operator overriding
1 Votes
JavaScript
1 Votes
What is machine learning?
0 Votes
How we get hearts
0 Votes
Why Can’t I See the XP Needed for the Next Level
0 Votes
Please how to get a heart
0 Votes
Effective Way to migrate emails from Outlook to Gmail
0 Votes