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...


Explain que with example?



Explain que with example?..

Answer / Sayyad Azaharuddin

que is a for comprehension construct in Scala that makes it easy to write complex iterations and collections transformations. Here's an example:nnval list = List(1, 2, 3, 4)nval evenNumbers = for (num <- list if num % 2 == 0) yield numnnevenNumbers will output List(2, 4)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

What are the popular MVC frameworks for Scala Language to develop Web Applications?

1 Answers  


What is the use of Auxiliary Constructors in Scala?Please explain the rules to follow in defining Auxiliary Constructors in Scala?

1 Answers  


Please explain closure is scala?

1 Answers  


How can you format a string?

1 Answers  


What are the differences between Array and ArrayBuffer in Scala?

1 Answers  


Mention the difference between an object and a class ?

1 Answers  


What is SBT? What is the best Build Tool to develop Play and Scala Applications?

1 Answers  


What are the available Unit Testing, Functional Testing and/or BDD Frameworks for Play and Scala Based applications?

1 Answers  


What is 'Type Inference' in Scala?

1 Answers  


What is the difference between val and var in Scala?

1 Answers  


Mention the types of variables in scala?

1 Answers  


Which scala library is used for the functional programming?

1 Answers  


Categories