title: Haxe: How to check if a variable is a function
body: <p>I would like to see if a Dynamic variable in Haxe is a Function.</p>
  <p>Using <code>Std.is(v, Function)</code> does not work as Function is not a recognized key word for types.</p>
  <p>I tried fooling around with <code>$type(v)</code> but it doesn't seem to actually return a string. <code>Sys.println($type(v));</code> does output <code>&lt;function&gt;</code> but it doesn't seem like I can work with it.</p>
  <p>I also tried to use <code>Std.is</code> with <code>typedef</code> but no luck as <code>typedef</code>s are not variables.</p>
  <p>TDLR: I want a function that takes a variable and outputs a boolean based on if it is a function.</p>