Skip to content

Commit 039a065

Browse files
committed
wrap_fcall
1 parent 4f471f5 commit 039a065

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/fexpr.jl

+5-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ end
101101
function wrap_head(fcall, wherestack)
102102
for w in Iterators.reverse(wherestack)
103103
fcall = Expr(:where, fcall, w)
104-
# fcall = Expr(:where, fcall, esc(w))
105104
end
106105
head = fcall
107106
return head
@@ -116,3 +115,8 @@ function unwrap_fcall(fcall::Expr)
116115
return f, args
117116
end
118117

118+
function wrap_fcall(f, args)
119+
fcall = :($f($((args)...)))
120+
return fcall
121+
end
122+
################################################################

0 commit comments

Comments
 (0)