V
V
Vladislav Khvostov2016-09-24 10:32:01
Swift
Vladislav Khvostov, 2016-09-24 10:32:01

Why, outside of loops, do you need in in swift?

Here for example

router.get("/") {
    request, response, next in
    response.send("Hello, World!")
    next()
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2016-09-24
@vlakhvo

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.
closures

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question