Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

add highlighting
Source Link
chunes
  • 27.8k
  • 3
  • 32
  • 55

Factor, 50 bytes

[ " "split [ 2 cut* reverse append ] map " "join ]
[ " "split [ 2 cut* reverse append ] map " "join ]

Try it online!

Factor's regular expressions don't support backreferences for philosophical reasons, so here's (possibly) the next best thing. It splits the input on spaces, applies a quotation to each word, and joins them with a space into a single string. Here's how the mapping quotation works:

 ! "Flipping"
2 cut* ! "Flippi" "ng"
reverse ! "Flippi" "gn"
append ! "Flippign"

Factor, 50 bytes

[ " "split [ 2 cut* reverse append ] map " "join ]

Try it online!

Factor's regular expressions don't support backreferences for philosophical reasons, so here's (possibly) the next best thing. It splits the input on spaces, applies a quotation to each word, and joins them with a space into a single string. Here's how the mapping quotation works:

 ! "Flipping"
2 cut* ! "Flippi" "ng"
reverse ! "Flippi" "gn"
append ! "Flippign"

Factor, 50 bytes

[ " "split [ 2 cut* reverse append ] map " "join ]

Try it online!

Factor's regular expressions don't support backreferences for philosophical reasons, so here's (possibly) the next best thing. It splits the input on spaces, applies a quotation to each word, and joins them with a space into a single string. Here's how the mapping quotation works:

 ! "Flipping"
2 cut* ! "Flippi" "ng"
reverse ! "Flippi" "gn"
append ! "Flippign"
Source Link
chunes
  • 27.8k
  • 3
  • 32
  • 55

Factor, 50 bytes

[ " "split [ 2 cut* reverse append ] map " "join ]

Try it online!

Factor's regular expressions don't support backreferences for philosophical reasons, so here's (possibly) the next best thing. It splits the input on spaces, applies a quotation to each word, and joins them with a space into a single string. Here's how the mapping quotation works:

 ! "Flipping"
2 cut* ! "Flippi" "ng"
reverse ! "Flippi" "gn"
append ! "Flippign"

AltStyle によって変換されたページ (->オリジナル) /