func make_list(separator = ') ') { var count = 1 func make_item(item) { [count++, separator, item].join } <first second third>.map(make_item).join("\n") } say make_list('. ')
1. first 2. second 3. third
Last updated 1 year ago