We don't have anything that could benefit from this now, but once we have queries of some sort, it might be useful. It's also possible that we only allow expression of these ideas in terms of function composition.
Example:
$ x^2 + x + 1 = 0
Then type:
get_indices(x)
map(replace_with(y),@)
where the @ symbol is understood to refer to the output of the last line. This would result in:
We don't have anything that could benefit from this now, but once we have queries of some sort, it might be useful. It's also possible that we only allow expression of these ideas in terms of function composition.
Example:
$ x^2 + x + 1 = 0
Then type:
where the @ symbol is understood to refer to the output of the last line. This would result in:
y^2 + y + 1 = 0.