Control Flow Redirections?
Should control flow keywords be able to perform and work with redirections themselves?
for x in 1...10
echo $x
end > results.txt
And a theoretical map
keyword that works similar to for
, but reads from stdin:
cat results.txt | map x
echo $x
end
And combined:
for x in 1...10
echo $x
end | filter x
ends-with 5 $x
end | map x
echo $x
end