+
    ‹°³jØ  ã                   ó   € R t  ! R R4      tR# )z
Replacement rules.
c                   óH   a € ] tR t^t o RtR 3R ltR tR tR	R ltRt	V t
R# )
Ú	TransformaA  
Immutable mapping that can be used as a generic transformation rule.

Parameters
==========

transform : callable
    Computes the value corresponding to any key.

filter : callable, optional
    If supplied, specifies which objects are in the mapping.

Examples
========

>>> from sympy.core.rules import Transform
>>> from sympy.abc import x

This Transform will return, as a value, one more than the key:

>>> add1 = Transform(lambda x: x + 1)
>>> add1[1]
2
>>> add1[x]
x + 1

By default, all values are considered to be in the dictionary. If a filter
is supplied, only the objects for which it returns True are considered as
being in the dictionary:

>>> add1_odd = Transform(lambda x: x + 1, lambda x: x%2 == 1)
>>> 2 in add1_odd
False
>>> add1_odd.get(2, 0)
0
>>> 3 in add1_odd
True
>>> add1_odd[3]
4
>>> add1_odd.get(3, 0)
4
c                ó   € R # )T© )Úxs   &ÚQ/home/luca/screen-checking/.venv/lib/python3.14/site-packages/sympy/core/rules.pyÚ<lambda>ÚTransform.<lambda>1   s   € ±4ó    c                ó   € Wn         W n        R # ©N)Ú
_transformÚ_filter)ÚselfÚ	transformÚfilters   &&&r   Ú__init__ÚTransform.__init__1   s   € Ø#ŒØŽr
   c                ó$   € V P                  V4      # r   )r   )r   Úitems   &&r   Ú__contains__ÚTransform.__contains__5   s   € Ø�|‰|˜DÓ!Ð!r
   c                óh   € V P                  V4      '       d   V P                  V4      # \        V4      hr   )r   r   ÚKeyError)r   Úkeys   &&r   Ú__getitem__ÚTransform.__getitem__8   s*   € Ø�<‰<˜×ÒØ—?‘? 3Ó'Ð'ä˜3“-Ðr
   Nc                ó"   € W9   d	   W,          # V# r   r   )r   r   Údefaults   &&&r   ÚgetÚTransform.get>   s   € ØŒ<Ø•:ÐàˆNr
   )r   r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   r   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r      s)   ø‡ € ñ)ñV *8ô ò"ò ÷ò r
   r   N)r%   r   r   r
   r   Ú<module>r)      s   ðñ÷=ó =r
   