Skip to content

Commit 840aca1

Browse files
committed
wrap_head
1 parent 84cdfbb commit 840aca1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/fexpr.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,13 @@ function unwrap_head(head)
9797
fcall = head
9898
fcall, wherestack
9999
end
100+
101+
function wrap_head(fcall, wherestack)
102+
for w in Iterators.reverse(wherestack)
103+
fcall = Expr(:where, fcall, w)
104+
# fcall = Expr(:where, fcall, esc(w))
105+
end
106+
head = fcall
107+
return head
108+
end
109+
################################################################

0 commit comments

Comments
 (0)