PageRenderTime 71ms CodeModel.GetById 34ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/hack/test/typecheck/array_map.php

https://github.com/newrelic/hhvm
PHP | 9 lines | 8 code | 1 blank | 0 comment | 0 complexity | a5050fb9cbd1c1d2b1a96e4e033d3590 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, BSD-3-Clause
  1. <?hh
  2. function test(
  3. (function(int, string): bool) $f,
  4. Container<int> $x,
  5. Container<string> $y,
  6. ): void {
  7. hh_show(array_map($f, $x, $y));
  8. }