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


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



What is the difference between :: and #:: in Scala? What is the difference between ::: and #::: in S..

Answer / Arnab Ghosh

[":: (cons) and #:: (reverse cons) are used for appending elements to lists. The difference is that :: places the element at the head of the list, while #:: places it at the tail. ::: and #::: concatenate two lists with :: and #:: respectively, but they do not reverse the order as their counterparts."]

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

What is the advantage of Scala?

1 Answers  


What is the Relationship between equals method and == in Scala? Differentiate Scala’s == and Java’s == Operator?

1 Answers  


Explain function currying in scala?

1 Answers  


Is Scala a Pure OOP Language? or Java a Pure OOP Language?

1 Answers  


Why is scala faster than java? Explain

1 Answers  


What does f method in scala string interpolation?

1 Answers  


What do you understand by apply and unapply methods in scala?

1 Answers  


What is an array in scala?

1 Answers  


What are major differences between Java-Based and Scala-Based Maven Project’s structure?

1 Answers  


What are streams in scala?

1 Answers  


What is a ‘Scala map’?

1 Answers  


What is a flatmap in scala?

1 Answers  


Categories