Skip to content

Commit c7f0aa5

Browse files
Update README.md
1 parent a980c85 commit c7f0aa5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,16 @@ du
124124
=#
125125
```
126126
127+
If one would like the generated function to be a Julia function instead of an expression, and allow this
128+
function to be used from within the same world-age, one simply needs to pass `Val{false}` to tell it to
129+
generate the function, i.e.:
130+
131+
```julia
132+
nlsys_func = generate_function(ns, [x,y,z], [σ,ρ,β], Val{false})[2]
133+
```
134+
135+
which uses GeneralizedGenerated.jl to build a same world-age function on the fly without eval.
136+
127137
### Example: Arrays of variables
128138
129139
Sometimes it is convenient to define arrays of variables to model things like `x₁,…,x₃`.

0 commit comments

Comments
 (0)