Mikaƫl Peltier | 3c8b6ea | 2017-12-12 13:00:21 +0100 | [diff] [blame] | 1 | // Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file |
2 | // for details. All rights reserved. Use of this source code is governed by a | ||||
3 | // BSD-style license that can be found in the LICENSE file. | ||||
4 | package loops | ||||
5 | |||||
6 | fun loopOnArray(array: Array<Int>) { | ||||
7 | for (i in array) { | ||||
8 | println(i) | ||||
9 | } | ||||
10 | } | ||||
11 | |||||
12 | fun main(args: Array<String>) { | ||||
13 | loopOnArray(arrayOf(1, 2, 3, 4, 5)) | ||||
14 | } |