Long shot, but is there anything internal that let...
# getting-started
h
Long shot, but is there anything internal that lets the language know when it doesn't have to call an expensive
get
twice, like in
Copy code
for (tensor in nn.tensors) { // assuming nn.tensors is expensive
    nn.tensors.doStuff()
}
without storing the value first as so?
Copy code
val tensors = nn.tensors
for (tensor in tensors) ...