Your variable names shadow a lot of regular julia functions - in this case, the function argument shadows the in function (which is only special insofar it’s allowed to be used infix). I’d recommend not shadowing types/functions for clarities sake (e.g. in or IOBuffer, like you do later in your code)
julia> in
in (generic function with 35 methods)