What is the difference between :: and #:: in Scala? What is the difference between ::: and #::: in Scala?
Answer Posted / 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 View All Answers