Skip to content

IEnumerable variant of replace operator #7000

@iSazonov

Description

@iSazonov

Summary of the new document or enhancement

Description of what changed

This kind of replace operator was already in Windows PowerShell but was never documented.
<input> <operator> <original>, <substitute>
Here input can be not only scalar but IEnumerable object (an array in simple case). PowerShell will magically convert elements from the object to strings. In PowerShell/PowerShell#14221 this kind of replace operator was optimized for performance and can be efficiently used by users.

Metadata

Metadata

Assignees

Labels

area-aboutArea - About_ topics

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions