blob: 928dec8521be44ca768a08faeaee6524686b70db [file] [log] [blame]
Mikaƫl Peltier3c8b6ea2017-12-12 13:00:21 +01001// 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.
4package loops
5
6fun loopOnArray(array: Array<Int>) {
7 for (i in array) {
8 println(i)
9 }
10}
11
12fun main(args: Array<String>) {
13 loopOnArray(arrayOf(1, 2, 3, 4, 5))
14}