mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
6 lines
218 B
Nim
6 lines
218 B
Nim
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))) |