B
��@[�
� @ s� d dl Z d dlZyd dlmZmZ W nJ ek
rn dZyd dlmZ W n ek
rh d dlmZ Y nX Y nX dd� Zdd� Z d d
� Z
dd� Zd
d� Zdd� Z
dd� Zdd� Zdd� Zdd� Zdd� Zedkr�dd� Zndd� Zdd� ZdS ) � N)� Parameter� signature)�getfullargspec)�
getargspecc C s | d S )z Add one to the current value � � )�xr r �N/opt/alt/python37/lib64/python3.7/site-packages/pyrsistent/_transformations.py�inc
s r
c C s | d S )z% Subtract one from the current value r r )r r r r �dec s r c C s$ y
| |= W n t k
r Y nX dS )zL Discard the element and returns a structure without the discarded elements N)�KeyError)�evolver�keyr r r �discard s
r c s t �| �� � fdd�S )zE Regular expression matcher to use together with transform functions c s t | tj�o� �| �S )N)�
isinstance�sixZstring_types�match)r )�rr r �