Skip to content

Commit 4f471f5

Browse files
committed
unwrap_fcall
1 parent 840aca1 commit 4f471f5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/fexpr.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,12 @@ function wrap_head(fcall, wherestack)
107107
return head
108108
end
109109
################################################################
110+
function unwrap_fcall(fcall::Expr)
111+
if !(fcall.head == :call)
112+
error("Expression is not supported")
113+
end
114+
f = fcall.args[1]
115+
args = fcall.args[2:end]
116+
return f, args
117+
end
118+

0 commit comments

Comments
 (0)