vlakhvo
@vlakhvo
front-end developer

Для чего, вне циклов, нужен in в swift?

Вот тут например
router.get("/") {
    request, response, next in
    response.send("Hello, World!")
    next()
}
  • Вопрос задан
  • 150 просмотров
Решения вопроса 1
DevMan
@DevMan
The start of the closure’s body is introduced by the in keyword. This keyword indicates that the definition of the closure’s parameters and return type has finished, and the body of the closure is about to begin.
замыкания
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы