summary refs log blame commit diff stats
path: root/tests/closure/tissue1502def.nim
blob: 0aa6b16e3b9d638fbb4441bed787af3abf9af011 (plain) (tree)
1
2
3
4
5
6





                                                                        
import sequtils
let xs: seq[tuple[key: string, val: seq[string]]] = @[("foo", @["bar"])]

let maps = xs.map(
  proc(x: auto): tuple[typ: string, maps: seq[string]] =
    (x.key, x.val.map(proc(x: string): string = x)))