fork(1) download
  1. import future, tables
  2.  
  3. proc filterTableByKey*[T, S](t: Table[T, S], pred: T -> bool): Table[T, S] =
  4. return lc[(k, v) | (k <- t.keys, v <- t.values, pred(k)), seq[(T, S)]].toTable
  5.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.nim(4, 20) Error: undeclared identifier: '|'
stdout
Standard output is empty