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

Is scala an oop?

1 Answers  


What are the data types in scala?

1 Answers  


List types of identifiers available in scala?

1 Answers  


Which is better scala or python?

1 Answers  


What does map in scala collection?

1 Answers  


What is the syntax for function declaration in scala?

1 Answers  


Explain the scope provided for variables in scala.

1 Answers  


What is lambda expression in scala?

1 Answers  


Why is an option used in scala?

1 Answers  


What is Either in Scala? What are Left and Right in Scala? Explain Either/Left/Right Design Pattern in Scala?

1 Answers  


What is function composition in scala?

1 Answers  


Please explain closure is scala?

1 Answers  


Categories