%dw 2.0
output application/json
fun repeat<T>(x:T) = [x  ~ repeat(x)]
---
(repeat("a")
  map ($ ++ $$)
  filter mod($$, 2) != 0)[0 to 5]

//do {
//  var strings = repeat("a")
//  var stringsWithIndex = repeatedElems map ($ ++ $$)
//  var stringsWithOddIndex = stringsWithIndex filter mod($$, 2) != 0
//  ---
//  stringsWithOddIndex[0 to 5]
//}

