How to step into the function which defines [ ]?

I’m trying to take a look of the function which defines the syntax of the square brackets and the semi-colon. Apparently, I’m doing something very wrong:

julia> @enter [1;2]
ERROR: AssertionError: isa(arg,Expr) && arg.head == :call

Can anyone let me know what is the correct way to enter the right piece of the code? Thanks!

Does @enter temp = [1,2] work?

Unfortunately not:

julia> @enter temp = [1;2]
ERROR: AssertionError: isa(arg,Expr) && arg.head == :call

julia> @enter temp = [1,2]
ERROR: AssertionError: isa(arg,Expr) && arg.head == :call

This might help:

using Gallium
f(x) = [x,x+1]
@enter f(1)
1 Like

Aha! Brilliant idea! Thanks for the workaround. It works!