Edit File: recipes.cpython-311.pyc
� u�dHc � �8 � d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z ddl mZmZm Z mZmZmZmZmZmZmZmZmZ ddlmZmZmZ ddlmZ g d �Z e� � Zd � Z d:d�Z!d� Z"d;d �Z#d;d�Z$d� Z%e&fd�Z'd� Z(e(Z)d� Z*d� Z+d� Z,d;d�Z-d� Z. ddl m/Z0 d� Z/e.j e/_ n # e1$ r e.Z/Y nw xY w G d� de2� � Z3d� Z4d� Z5d<d�Z6d� Z7d � Z8d!� Z9d;d"�Z:d;d#�Z;d;d$�Z<d=d%�Z=d&d'�d(�Z>d;d)�Z?d*� Z@d+� ZAd,� ZBd-� ZCd.� ZDd/� ZEd0� ZFd1� ZGd2� ZHd3� ZId:d4�ZJd5� ZKd6� ZLd7� ZMd8� ZNd9� ZOdS )>a Imported from the recipes section of the itertools documentation. All functions taken from the recipes section of the itertools library docs [1]_. Some backward-compatible usability improvements have been made. .. [1] http://docs.python.org/library/itertools.html#recipes � N)�deque)�Sized)�reduce)�chain�combinations�compress�count�cycle�groupby�islice�product�repeat�starmap�tee�zip_longest)� randrange�sample�choice)� hexversion)(� all_equal�batched�before_and_after�consume�convolve� dotproduct� first_true�factor�flatten�grouper�iter_except� iter_index�matmul�ncycles�nth�nth_combination�padnone�pad_none�pairwise� partition�polynomial_from_roots�powerset�prepend�quantify�#random_combination_with_replacement�random_combination�random_permutation�random_product� repeatfunc� roundrobin�sieve�sliding_window� subslices�tabulate�tail�take� transpose� triplewise�unique_everseen�unique_justseenc �<