%dw 2.0
output application/json
import * from org::mule::weave::v2::engine::infinit_list::MyLib
---
(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]
//}

