Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. template partitionIt*[T](s: openArray[T], pred: untyped): untyped = # it's OK
  2.  
  3. template partitionIt*[T](s: openArray[T], pred: untyped): (openArray[T], openArray[T]) = # problem
  4.  
  5. test_pykot.nim(204, 31) Error: type mismatch: got <tuple[t: seq[float], f: seq[float]]> but expected 'tuple of (openarray[float], openarray[float])'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement