Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


In FP, What is the difference between a function and a procedure?



In FP, What is the difference between a function and a procedure?..

Answer / Akash Negi

In functional programming (FP), functions are first-class citizens with well-defined inputs and outputs, while procedures do not have a clearly defined return type. Functions can be higher-order, meaning they take other functions as arguments or return them as results. Procedures, on the other hand, typically modify the state outside of their own scope.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

What does set in scala collection?

1 Answers  


Mention the types of variables in scala?

1 Answers  


Explain the use of tuples in scala?

1 Answers  


Explain the difference between function and method in scala?

1 Answers  


What is an Expression? What is a Statement? Difference between Expression and Statement?

1 Answers  


How do we make a call to a private primary constructor in scala?

1 Answers  


Describe loops in scala?

1 Answers  


What is an anonymous object in scala?

1 Answers  


Does scala and java support call-by-name?

1 Answers  


What does map in scala collection?

1 Answers  


What do you mean by option in scala and why it is used?

1 Answers  


What is the diamond problem in scala?

1 Answers  


Categories