如果不返回任何值,你就让它成为空白的。
And if you're returning nothing, you don't just leave it blank.
该方法不返回任何值。
上述语句指定了一个表达式,该表达式产生了一个布尔值和一个不返回任何结果的代码块(Unit),这正是 while 所期望的。
The arguments above specify an expression that yields a boolean value and a block of code that returns nothing (Unit), which is exactly what while expects.
And if you're returning nothing, you don't just leave it blank.
如果不返回任何值,你就让它成为空白的。
It doesn't return anything.
它不返回任何值。
> So void, again, is my way of saying swap does not return anything.
>,void,再次强调下,这是一种,说明函数不返回任何值的方式。
应用推荐