Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
setuptools
/
_vendor
/
more_itertools
/
__pycache__
[ HOME ]
Exec
Submit
recipes.cpython-37.pyc
B ��Re�? � @ s� d Z ddlZddlmZ ddlmZmZmZmZm Z m Z mZmZm Z mZ ddlZddlmZmZmZ dddd d ddd ddddddddddddddddddd d!d"gZd#d � ZdDd$d�Zd%d� ZdEd&d�ZdFd'd�Zd(d� Zefd)d�Zd*d� ZeZd+d� Zd,d � Z d-d� Z!dGd.d�Z"d/d0� Z#ydd1lm$Z% W n e&k �rD e#Z$Y nX d2d� Z$e#j e$_ dHd3d�Z'd4d� Z(d5d� Z)d6d� Z*dId7d!�Z+dJd8d"�Z,dKd9d �Z-dLd:d �Z.d;d<�d=d�Z/dMd>d�Z0d?d� Z1d@d� Z2dAd� Z3dBd� Z4dCd� Z5dS )Na 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) �chain�combinations�count�cycle�groupby�islice�repeat�starmap�tee�zip_longest)� randrange�sample�choice� all_equal�consume�convolve� dotproduct� first_true�flatten�grouper�iter_except�ncycles�nth�nth_combination�padnone�pad_none�pairwise� partition�powerset�prepend�quantify�#random_combination_with_replacement�random_combination�random_permutation�random_product� repeatfunc� roundrobin�tabulate�tail�take�unique_everseen�unique_justseenc C s t t|| ��S )z�Return first *n* items of the iterable as a list. >>> take(3, range(10)) [0, 1, 2] If there are fewer than *n* items in the iterable, all of them are returned. >>> take(10, range(3)) [0, 1, 2] )�listr )�n�iterable� r0 ��/builddir/build/BUILDROOT/alt-python37-setuptools-58.3.0-4.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/setuptools/_vendor/more_itertools/recipes.pyr* <