You can use generics like this: `proc sum[T, Y](a: T, b: Y): float = float(a) + 
float(b)`

<https://play.nim-lang.org/#ix=3BQH>

Reply via email to