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

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Required fields*

Tips for golfing in PowerShell

What general tips do you have for golfing in Windows PowerShell? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to PowerShell (e.g. "remove comments" is not an answer). Please post one tip per answer.

—taken nearly verbatim from marcog's question.

Answer*

Draft saved
Draft discarded
Cancel
1
  • 2
    \$\begingroup\$ Sadly very rarely useful (at least in my golfing so far – I tend to strip it down to only a single join at the end). \$\endgroup\$ Commented Mar 4, 2016 at 20:07

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