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


How do I append to the list?



How do I append to the list?..

Answer / Sarvesh Kumar Gautam

"In Scala, you can use the :+ operator or the ++ method to append to a list. Here's an example using :+: `val numbers = List(1, 2); val appendedList = numbers :+ 3`"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

What are the advantages of scala over java (java 8)?

1 Answers  


How Scala supports both Highly Scalable and Highly Performance applications?

1 Answers  


How do I concatenate two strings?

1 Answers  


What is file handling in scala?

1 Answers  


What do you mean by ofdim in scala?

1 Answers  


Explain que?

1 Answers  


What is the difference between statically typed and dynamically typed languages?

1 Answers  


What is the difference between :: and #:: in scala?

1 Answers  


Explain the difference between val and var 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  


Explain the advantage of scala over other programming languages?

1 Answers  


What is the use of tuples in scala?

1 Answers  


Categories