Like the question says.
This was found in List[() => Unit] which was used to store callback functions.
I understand List[type] and that Unit is a return type of a function that doesnt return anything.
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.
(T1,...,Tn) => Tis the type of functions that take parameters of typesT1throughTnand return typeT. So() => Unitis the type of functions that take no parameters and have return type Unit. ConsequentlyList[() => Unit]is the type of lists containing such functions.