Skip to content

Instantly share code, notes, and snippets.

@Ark-kun
Forked from jaredpar/gist:9278669
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ark-kun/9279034 to your computer and use it in GitHub Desktop.
Save Ark-kun/9279034 to your computer and use it in GitHub Desktop.
function f1() { return @("hello"); }
function f2() { return @("hello", "world"); }
$a = @(f1);
write-host $a.Length # prints 1
$a = @(f2);
write-host $a.Length # prints 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment