repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
global statement removal: hphp/test [7/x]
[hiphop-php.git]
/
hphp
/
test
/
quick
/
lambda3.php
blob
13ebd1956ee3682cc19ce5a39d66e17d4c03213f
1
<
?hh
2
3
function
main
() {
4
$capture1
=
"yo"
;
5
$get_func
= (
$x
,
$y
) ==> {
6
return
$more
==>
$x
.
$y
.
$capture1
.
$more
;
7
};
8
9
$f
=
$get_func
(
"one "
,
"two "
);
10
echo
$f
(
"
\n
"
);
11
}
12
13
main
();