I would like to “nest” @ncall operations from Bese.Cartesian.
The motivation is to create a statically sized Svector of Svectors.
To that end, I tried the following:
julia> using StaticArrays
julia> using Base.Cartesian
julia> @ncall 3 SVector x->(@ncall 3 SVector x->x)
ERROR: LoadError: ArgumentError: not a single-argument anonymous function
Stacktrace:
[1] inlineanonymous(::Expr, ::Int64) at ./cartesian.jl:240
[2] @ncall(::LineNumberNode, ::Module, ::Int64, ::Any, ::Vararg{Any,N} where N) at ./cartesian.jl:107
in expression starting at none:1
Clearly I am doing something wrong…
Suggestions are welcome.