Box the compass: Difference between revisions
Content added Content deleted
No edit summary |
m (→{{header|REXX}}: added whitespace.) |
||
Line 5,918: | Line 5,918: | ||
z= word(@pts, trunc(max(1, (y/11.25 +1.5) // #))) /*convert degrees─►heading*/ |
z= word(@pts, trunc(max(1, (y/11.25 +1.5) // #))) /*convert degrees─►heading*/ |
||
do k=1 for words(dirs); d= word(dirs, k) |
do k=1 for words(dirs); d= word(dirs, k) |
||
z=changestr( left(d, 1), z, d) |
z= changestr( left(d, 1), z, d) |
||
end /*k*/ /* [↑] old, haystack, new*/ |
end /*k*/ /* [↑] old, haystack, new*/ |
||
return changestr('b', z, " by ") /*expand "b" ───► " by ".*/</lang> |
return changestr('b', z, " by ") /*expand "b" ───► " by ".*/</lang> |