Repository navigation
1.0
Release note
Function call without parenthesis
When calling functions, you can now omit the parenthesis, like in Groovy
println "Without parenthesis" // println("Without parenthesis")
println fibonacci 10 // println(fibonacci(10))Iterable operations
Implemented a new syntax to perform common operations on Iterables.
list<int> list = [1, 2, 3, 4]
list<int> list2 = [for int i in list -> i + 1] // map -> [2, 3, 4, 5]
list<float> list2 = [for int i in list -> i + 0.1f if i <= 2] // map and filter -> [1.1f, 2.2f]
println(when int a in list |> a >= 3) // any -> true
println(when int a in list &> a >= 3) // all -> false
println(!when int a in list |> a >= 3) // not any -> false
println(!when int a in list &> a >= 3) // not all -> true
println(when int a in list -> a % 2 == 0) // find -> 2
println(when int a in list -> a % 2 == 5) // find -> nullFull documentation here
Marcel for Android
the Marcel for Android app has been redeveloped from scratch, offering a much better UI.