Skip to content

Latest commit

 

History

History
37 lines (20 loc) · 798 Bytes

File metadata and controls

37 lines (20 loc) · 798 Bytes

Replace

Replace(expr, lhs -> rhs)

replaces the left-hand-side pattern expression lhs in expr with the right-hand-side rhs.

Replace(expr, {lhs1 -> rhs1, lhs2 -> rhs2, ... } )

replaces the left-hand-side patterns expression lhsX in expr with the right-hand-side rhsX.

Examples

>> Replace(x, {{e->q, x -> a}, {x -> b}})
{a,b}

Related terms

ReplaceAll, ReplaceList, ReplacePart, ReplaceRepeated

Implementation status

  • ✅ - full supported

Github