#
# Complete description of the chameneos-redux :
# https://benchmarksgame.alioth.debian.org/u64q/chameneosredux-description.html#chameneosredux
-module chameneosredux is no_warning("missing-doc")
+module chameneosredux is example, no_warning("missing-doc")
import actors
fun blue: Int do return 0
fun red: Int do return 1
fun yellow: Int do return 2
- var numbers: Array[String] = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]
- var colors: Array[String] = ["blue", "red", "yellow"]
+ var numbers = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]
+ var colors = ["blue", "red", "yellow"]
# Matrix for complementing colors
var complements: Array[Array[Int]] = [[0, 2, 1],
[2, 1, 0],
for c in creatures do c.async.run
- active_actors.is_empty
+ active_actors.wait
var total = 0
for c in creatures do