dump again (pun intended)
Thanks a lot!
evec = [:(a[3] = a[1] + a[2]), :(a[4] = a[2] + a[3])]
eblk = Expr(:block,evec...)
fib = genfun(eblk, (:a,))
a = [1,1,0,0]
fib(a)
a
4-element Vector{Int64}:
1
1
2
3
dump again (pun intended)
Thanks a lot!
evec = [:(a[3] = a[1] + a[2]), :(a[4] = a[2] + a[3])]
eblk = Expr(:block,evec...)
fib = genfun(eblk, (:a,))
a = [1,1,0,0]
fib(a)
a
4-element Vector{Int64}:
1
1
2
3