Skip to content

Instantly share code, notes, and snippets.

@Vindaar
Created July 2, 2018 15:14
Show Gist options
  • Save Vindaar/2933bcc614ea6960ba6f393bb14ffdd9 to your computer and use it in GitHub Desktop.
Save Vindaar/2933bcc614ea6960ba6f393bb14ffdd9 to your computer and use it in GitHub Desktop.
type
Func1 = proc (p: seq[float])
Func2[T] = proc (p: seq[float], d: T)
proc f1(p: seq[float]) = discard
proc f2(p: seq[float], d: float) = discard
echo "f1 is ", f1 is Func1 # returns false
echo "f2 is ", f2 is Func2 # returns true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment