## Nim code with generics - should validate cleanly (no false "Unclosed '<'")
proc jarray[T](node: T): T =
result = node
proc pair[A, B](a: A, b: B): (A, B) =
(a, b)
proc findIf[T](items: seq[T], pred: proc(x: T): bool): Option[T] =
for item in items:
if pred(item):
return some(item)
proc compare[T](a, b: T): bool =
a < b and b > a