在学生们不知情的情况下,研究人员调查了他们在该学期餐卡的匿名消费情况——近500名学生的近1.4万张消费小票。
Unknown to the students, the researchers studied their anonymized meal-card purchases for that semester—nearly 14,000 receipts for almost 500 students.
在需要输出一个类型的多个实例的情况下 —— 在这个示例中,有两只猫和一只狗 —— 需要以匿名散列的匿名数组的形式收集散列。
Where there is more than one instance of the type to output -- in this case, where you have two cats but one dog -- you need to collect the hashes as an anonymous array of anonymous hashes.
如果有两个匿名成员都提供一个方法,编译器将会报错,但只在该方法被调用的情况下。
If there are two anonymous members that both provide a method, the compiler will produce an error, but only if that method is called.
应用推荐