G = G.name = = Genre represents an anonymous function. That is, the single method is passed a parameter of a method type.
The G on the left represents the parameter of the method, and can have more than one, such as (g,f) = = ...,=> to the right represents the return value of the method,
It's all written: G = {return g.name}.
The Name property can be ordered because the single method declares the format of the method type parameter, for example:
Func<student, bool>
This method type indicates that the input parameter is of type student and the return value is of type bool. Corresponds to the value of the method parameter above,
Then g for student object, G can be casually named, but here always represents the student object, such as can be written:
Single (Stu = Stu. Name = = "Genre");
Inside the single method, it can call the method we passed in, which passes in the student type parameter,
Then a bool value is returned to represent whether the object satisfies the condition that the name attribute equals "Genre", which filters the data as it traverses the student list.
var Genremodel =storedb.genres.include ("Albums"). Single (g = G.name = = genre); What do you mean?