I wanted to know if we can pass a Map or List in a function like we pass Int or Long or String etc? If yes then how if we have a Map?
I am using play 2.0.4.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not in 2.0.4, unless you define some implicit query binders. Play 2.1+ has defined query binder for generic List (i.e.
List[T]). You can copy implementation from the repository and paste it into your project (as I did – see this question and answer).