Given a list or delimited string, output a list or delimited string with the first character of each word one word later.
For this challenge, a "word" consists of only all printable ASCII characters, except the space, newline, and tab character.
For example, take the string "Good afternoon, World!" (space-delimited):
1. String "Good afternoon, World!" 2. Get the first characters: "[G]ood [a]fternoon, [W]orld!" 3. Move the characters over. The character at the end gets moved to the beginning. "[W]ood [G]fternoon, [a]orld!" 4. Final string "Wood Gfternoon, aorld!"
This is code-golf, so shortest code wins!
Input -> output (space-delimited) "Good afternoon, World!" -> "Wood Gfternoon, aorld!" "This is a long sentence." -> "shis Ts i aong lentence." "Programming Puzzles and Code Golf" -> Grogramming Puzzles Pnd aode Colf" "Input -> output" -> "onput I> -utput" "The quick brown fox jumped over the lazy dog." -> "dhe Tuick qrown box fumped jver ohe tazy log." "good green grass grows." -> "good green grass grows."