ó
P'—^c        @   @   s†  d  d l  m Z m Z m Z m Z m Z m Z d  d l	 m
 Z
 m Z d  d l Z d d l m Z m Z m Z m Z m Z m Z m Z m Z m Z m Z d d l m Z d d l m Z d d l  m! Z! m" Z" d	 d
 d d d d d d d d d d d d d d d d d d d d d d  d! d" d# d$ d% d& d' d( d) d* d+ d, d- d. d/ d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d: d; d< d= d> d? d@ dA dB dC dD dE dF dG dH g@ Z# d  dI l  m$ Z$ m% Z% m& Z& e dJ „ Z' dK „  Z( dL „  Z) dM „  Z* dN „  Z+ dO „  Z, dP „  Z- dQ „  Z. dR „  Z/ dS „  Z0 dT „  Z1 dU „  Z dV „  Z dW „  Z dX „  Z e rJdY „  Z2 n e Z2 dZ „  Z3 d[ „  Z4 e d\ „ Z5 e d] „ Z6 d^ „  Z7 d_ „  Z8 d` „  Z9 e Z: da „  Z; e j< Z= e db „ Z> e dc „ Z? dd „  Z@ de „  ZA df „  ZB dg „  ZC e dh „ Z e di „ Z e dj „ ZD e dk „ ZE dl „  ZF dm „  ZG dn „  ZH do „  ZI dp „  ZJ dq „  ZK dr „  ZL ds „  ZM dt „  ZN du „  ZO dv „  ZP dw „  ZQ dx „  ZR e dy „ ZS e dz „ ZT e d{ „ ZU e d| „ ZV e d} „ ZW d~ „  ZX d „  ZY d d€ „ Z[ d d „ Z\ d‚ „  Z] y) d  dƒ l  m^ Z^ d„ „  Z_ e d… „ Z` Wn, ea k
 rTe d† „ Z` e jb d‡ „ Z^ n Xdˆ e` _c e d‰ „ Zd e dŠ „ Ze e d‹ „ Zf d S(Œ   iÿÿÿÿ(   t   islicet   chaint   teet   groupbyt	   takewhilet	   dropwhile(   t   defaultdictt   dequeNi   (
   t   mapt   filtert   lmapt   lfiltert   zipt   filterfalset   ranget   Sequencet   PY2t   PY3(   t   EMPTY(   t
   is_seqcont(   t	   make_funct	   make_predt   countt   cyclet   repeatt
   repeatedlyt   iteratet   taket   dropt   firstt   secondt   ntht   lastt   restt   butlastt   ilenR   R	   R
   R   t   removet   lremovet   keept   lkeept   withoutt   lwithoutt   concatt   lconcatR   t   catt   lcatt   flattent   lflattent   mapcatt   lmapcatt
   interleavet	   interposet   distinctt	   ldistinctR   R   t   splitt   lsplitt   split_att	   lsplit_att   split_byt	   lsplit_byt   group_byt   group_by_keyst   group_valuest   count_byt
   count_repst	   partitiont
   lpartitiont   chunkst   lchunkst   partition_byt   lpartition_byt	   with_prevt	   with_nextt   pairwiset
   reductionst   lreductionst   sumst   lsumst
   accumulate(   R   R   R   c            s;   | t  k r t d ƒ n t d | ƒ } ‡  f d †  | Dƒ S(   s€   Takes a function of no args, presumably with side effects,
       and returns an infinite (or length n) iterator of calls to it.c         3   s   |  ] } ˆ  ƒ  Vq d  S(   N(    (   t   .0t   _(   t   f(    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pys	   <genexpr>"   s    N(   R   R   t   None(   RQ   t   nt   _repeat(    (   RQ   s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR      s    'c         c   s"   x t  r | V|  | ƒ } q Wd S(   s7   Returns an infinite iterator of `x, f(x), f(f(x)), ...`N(   t   True(   RQ   t   x(    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR   $   s    	c         C   s   t  t | |  ƒ ƒ S(   s_   Returns a list of first n items in the sequence,
       or all items if there are fewer than n.(   t   listR    (   RS   t   seq(    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR   +   s    c         C   s   t  | |  d ƒ S(   s5   Skips first n items in the sequence, yields the rest.N(   R    RR   (   RS   RX   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR   0   s    c         C   s   t  t |  ƒ d ƒ S(   sU   Returns the first item in the sequence.
       Returns None if the sequence is empty.N(   t   nextt   iterRR   (   RX   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR   4   s    c         C   s   t  t |  ƒ ƒ S(   s`   Returns second item in the sequence.
       Returns None if there are less than two items in it.(   R   R!   (   RX   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR   9   s    c         C   sK   y | |  SWn8 t  k
 r  d St k
 rF t t | |  d ƒ d ƒ SXd S(   s@   Returns nth item in the sequence or None if no such item exists.N(   t
   IndexErrorRR   t	   TypeErrorRY   R    (   RS   RX   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR   >   s    c         C   sM   y |  d SWn: t  k
 r  d St k
 rH d } x |  D] } q: W| SXd S(   s`   Returns the last item in the sequence or iterator.
       Returns None if the sequence is empty.iÿÿÿÿN(   R[   RR   R\   (   RX   t   item(    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR    G   s    c         C   s   t  d |  ƒ S(   s2   Skips first item in the sequence, yields the rest.i   (   R   (   RX   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR!   T   s    c         c   sP   t  |  ƒ } y t | ƒ } Wn t k
 r/ n Xx | D] } | V| } q7 Wd S(   s4   Iterates over all elements of the sequence but last.N(   RZ   RY   t   StopIteration(   RX   t   itt   prevR]   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR"   X   s    c         C   s,   t  ƒ  } t t |  | ƒ d d ƒt | ƒ S(   sW   Consumes an iterable not reading it into memory
       and returns the number of items.t   maxleni    (   R   R   R   RY   (   RX   t   counter(    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR#   d   s    	c         G   s   t  t |  d t ƒ| Œ S(   sc   An extended version of builtin map().
       Derives a mapper from string, int, slice, dict or set.t   builtin(   t   _lmapR   R   (   RQ   t   seqs(    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR
   o   s    c         C   s   t  t |  d t ƒ| ƒ S(   si   An extended version of builtin filter().
       Derives a predicate from string, int, slice, dict or set.Rc   (   t   _lfilterR   R   (   t   predRX   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR   t   s    c         G   s   t  t |  d t ƒ| Œ S(   sd   An extended version of builtin imap().
       Derives a mapper from string, int, slice, dict or set.Rc   (   t   _mapR   R   (   RQ   Re   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR   y   s    c         C   s   t  t |  d t ƒ| ƒ S(   sj   An extended version of builtin ifilter().
       Derives a predicate from string, int, slice, dict or set.Rc   (   t   _filterR   R   (   Rg   RX   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR	   ~   s    c         G   s   t  t |  ƒ | Œ S(   N(   Rh   R   (   RQ   Re   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyt   xmap‡   s    c         C   s   t  t |  | ƒ ƒ S(   s0   Creates a list if items passing given predicate.(   RW   R$   (   Rg   RX   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR%      s    c         C   s   t  t |  d t ƒ| ƒ S(   s'   Iterates items passing given predicate.Rc   (   R   R   R   (   Rg   RX   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR$   ‘   s    c         C   s   t  t |  | ƒ ƒ S(   si   Maps seq with f and keeps only truthy results.
       Simply lists truthy values in one argument version.(   RW   R&   (   RQ   RX   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR'   •   s    c         C   s3   | t  k r t t |  ƒ St t t |  | ƒ ƒ Sd S(   sj   Maps seq with f and iterates truthy results.
       Simply iterates truthy values in one argument version.N(   R   Ri   t   boolRj   (   RQ   RX   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR&   š   s    c         g   s)   x" |  D] } | | k r | Vq q Wd S(   s&   Iterates over sequence skipping items.N(    (   RX   t   itemst   value(    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR(   ¢   s    c         G   s   t  t |  | Œ ƒ S(   s-   Removes items from sequence, preserves order.(   RW   R(   (   RX   Rl   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR)   ¨   s    c          G   s   t  t |  Œ  ƒ S(   s   Concatenates several sequences.(   RW   R   (   Re   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR+   ­   s    c         C   s   t  t |  ƒ ƒ S(   s'   Concatenates the sequence of sequences.(   RW   R,   (   Re   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR-   ²   s    c         c   sH   xA |  D]9 } | | ƒ r; x$ t  | | ƒ D] } | Vq) Wq | Vq Wd S(   sU   Flattens arbitrary nested sequence.
       Unpacks an item if follow(item) is truthy.N(   R.   (   RX   t   followR]   t   sub(    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR.   ·   s
    c         C   s   t  t |  | ƒ ƒ S(   sW   Iterates over arbitrary nested sequence.
       Dives into when follow(item) is truthy.(   RW   R.   (   RX   Rn   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR/   Â   s    c         G   s   t  t |  | Œ ƒ S(   s4   Maps given sequence(s) and concatenates the results.(   R-   Rj   (   RQ   Re   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR1   Ç   s    c         G   s   t  t |  | Œ ƒ S(   s.   Maps given sequence(s) and chains the results.(   R,   Rj   (   RQ   Re   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR0   Ë   s    c          G   s   t  t |  Œ  ƒ S(   s>   Yields first item of each sequence, then second one and so on.(   R,   R   (   Re   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR2   Ï   s    c         C   s   t  d t t |  ƒ | ƒ ƒ S(   s2   Yields items of the sequence alternating with sep.i   (   R   R2   R   (   t   sepRX   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR3   Ó   s    c         C   s5   | t  k r t |  }  } n t |  ƒ }  t |  | ƒ S(   sl   Yields sequence items until first predicate fail.
       Stops on first falsy value in one argument version.(   R   Rk   R   t
   _takewhile(   Rg   RX   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR   ×   s    c         C   s5   | t  k r t |  }  } n t |  ƒ }  t |  | ƒ S(   sb   Skips the start of the sequence passing pred (or just truthy),
       then iterates over the rest.(   R   Rk   R   t
   _dropwhile(   Rg   RX   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR   à   s    c         C   s   t  t |  | ƒ ƒ S(   s3   Removes duplicates from sequences, preserves order.(   RW   R4   (   RX   t   key(    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR5   ê   s    c         c   s˜   t  ƒ  } | t k rJ x| |  D]' } | | k r | j | ƒ | Vq q WnJ t | ƒ } x; |  D]3 } | | ƒ } | | k r] | j | ƒ | Vq] q] Wd S(   s*   Iterates over sequence skipping duplicatesN(   t   setR   t   addR   (   RX   Rs   t   seenR]   t   k(    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR4   î   s    	c            s`   t  ˆ ƒ ‰ t ƒ  t ƒ  ‰ ‰  ‡  ‡ ‡ f d †  | Dƒ ‰ ‡ f d †  } | ˆ ƒ | ˆ  ƒ f S(   s†   Lazily splits items which pass the predicate from the ones that don't.
       Returns a pair (passed, failed) of respective iterators.c         3   s9   |  ]/ } ˆ | ƒ r$ ˆ j  | ƒ n ˆ  j  | ƒ Vq d  S(   N(   t   append(   RO   R]   (   t   noRg   t   yes(    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pys	   <genexpr>  s    c         3   sL   xE t  rG x |  r  |  j ƒ  Vq Wy t ˆ  ƒ Wq t k
 rC d  SXq Wd  S(   N(   RU   t   popleftRY   R^   (   t   q(   t   splitter(    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyt   _split  s    		(   R   R   (   Rg   RX   R~   (    (   Ry   Rg   R}   Rz   s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR6      s
    	c         C   s]   t  |  ƒ }  g  g  } } x7 | D]/ } |  | ƒ rB | j | ƒ q  | j | ƒ q  W| | f S(   s{   Splits items which pass the predicate from the ones that don't.
       Returns a pair (passed, failed) of respective lists.(   R   Rx   (   Rg   RX   Rz   Ry   R]   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR7     s    c         C   s1   t  | ƒ \ } } t | |  ƒ t | |  d ƒ f S(   sk   Lazily splits the sequence at given position,
       returning a pair of iterators over its start and tail.N(   R   R    RR   (   RS   RX   t   at   b(    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR8     s    c         C   s+   t  |  | ƒ \ } } t | ƒ t | ƒ f S(   sV   Splits the sequence at given position,
       returning a tuple of its start and tail.(   R8   RW   (   RS   RX   R   R€   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR9   %  s    c         C   s.   t  | ƒ \ } } t |  | ƒ t |  | ƒ f S(   sf   Lazily splits the start of the sequence,
       consisting of items passing pred, from the rest of it.(   R   R   R   (   Rg   RX   R   R€   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR:   +  s    c         C   s+   t  |  | ƒ \ } } t | ƒ t | ƒ f S(   s_   Splits the start of the sequence,
       consisting of items passing pred, from the rest of it.(   R:   RW   (   Rg   RX   R   R€   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR;   1  s    c         C   sD   t  |  ƒ }  t t ƒ } x% | D] } | |  | ƒ j | ƒ q W| S(   sB   Groups given sequence items into a mapping f(item) -> [item, ...].(   R   R   RW   Rx   (   RQ   RX   t   resultR]   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR<   8  s
    c         C   sU   t  |  ƒ }  t t ƒ } x6 | D]. } x% |  | ƒ D] } | | j | ƒ q2 Wq W| S(   sv   Groups items having multiple keys into a mapping key -> [item, ...].
       Item might be repeated under several keys.(   R   R   RW   Rx   (   t   get_keysRX   R   R]   Rw   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR=   A  s    c         C   s8   t  t ƒ } x% |  D] \ } } | | j | ƒ q W| S(   sA   Takes a sequence of (key, value) pairs and groups values by keys.(   R   RW   Rx   (   RX   R   Rs   Rm   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR>   L  s    c         C   sC   t  |  ƒ }  t t ƒ } x$ | D] } | |  | ƒ c d 7<q W| S(   sT   Counts numbers of occurrences of values of f()
       on elements of given sequence.i   (   R   R   t   int(   RQ   RX   R   R]   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR?   T  s
    c         C   s1   t  t ƒ } x |  D] } | | c d 7<q W| S(   s8   Counts number occurrences of each value in the sequence.i   (   R   Rƒ   (   RX   R   R]   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyR@   ^  s    c            sI   |  r t  ˆ ƒ ˆ  d n	 t  ˆ ƒ } ‡  ‡ f d †  t d | | ƒ Dƒ S(   Ni   c         3   s    |  ] } ˆ | | ˆ  !Vq d  S(   N(    (   RO   t   i(   RS   RX   (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pys	   <genexpr>i  s    i    (   t   lenR   (   t	   drop_tailRS   t   stepRX   t   limit(    (   RS   RX   s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyt   _cut_seqg  s    &c         c   s•   t  | ƒ } t | | ƒ } xE t rb t | ƒ | k  r: Pn  | V| | } | j t | | ƒ ƒ q W|  s‘ x% t |  | | | ƒ D] } | Vq Wn  d  S(   N(   RZ   R   RU   R…   t   extendR    R‰   (   R†   RS   R‡   RX   R_   t   poolR]   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyt	   _cut_iterk  s    	
c         C   sk   | t  k r | | } } n  t | t ƒ rT t sA t | t ƒ rT t |  | | | ƒ St |  | | | ƒ Sd  S(   N(   R   t
   isinstanceR   R   R   R‰   RŒ   (   R†   RS   R‡   RX   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyt   _cutx  s
    %c         C   s   t  t |  | | ƒ S(   s{   Lazily partitions seq into parts of length n.
       Skips step items between parts if passed. Non-fitting tail is ignored.(   RŽ   RU   (   RS   R‡   RX   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyRA     s    c         C   s   t  t |  | | ƒ ƒ S(   st   Partitions seq into parts of length n.
       Skips step items between parts if passed. Non-fitting tail is ignored.(   RW   RA   (   RS   R‡   RX   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyRB   †  s    c         C   s   t  t |  | | ƒ S(   sb   Lazily chunks seq into parts of length n or less.
       Skips step items between parts if passed.(   RŽ   t   False(   RS   R‡   RX   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyRC   ‹  s    c         C   s   t  t |  | | ƒ ƒ S(   s[   Chunks seq into parts of length n or less.
       Skips step items between parts if passed.(   RW   RC   (   RS   R‡   RX   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyRD     s    c         c   s5   t  |  ƒ }  x" t | |  ƒ D] \ } } | Vq Wd S(   sE   Lazily partition seq into continuous chunks with constant value of f.N(   R   R   (   RQ   RX   RP   Rl   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyRE   •  s    c         C   s   t  t t |  | ƒ ƒ S(   s>   Partition seq into continuous chunks with constant value of f.(   Rd   RW   RE   (   RQ   RX   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyRF   ›  s    c         C   s+   t  |  ƒ \ } } t | t | g | ƒ ƒ S(   s9   Yields each item paired with its preceding: (item, prev).(   R   R   R   (   RX   t   fillR   R€   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyRG      s    c         C   s8   t  |  ƒ \ } } t | d ƒ t | t | | g ƒ ƒ S(   s9   Yields each item paired with its following: (item, next).N(   R   RY   RR   R   R   (   RX   R   R   R€   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyRH   ¥  s    c         C   s,   t  |  ƒ \ } } t | d ƒ t | | ƒ S(   s-   Yields all pairs of neighboring items in seq.N(   R   RY   RR   R   (   RX   R   R€   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyRI   ­  s    (   RN   c         c   s/   | } x" | D] } |  | | ƒ } | Vq Wd  S(   N(    (   RQ   RX   t   accR    RV   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyt   _reductions¸  s    c         C   sB   | t  k r2 |  t j k r% t | ƒ St | |  ƒ St |  | | ƒ S(   N(   R   t   operatorRu   RN   R’   (   RQ   RX   R‘   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyRJ   ¾  s    &c         c   st   t  | ƒ } | t k rE y t | ƒ } Wn t k
 r< d  SX| Vn | } x" | D] } |  | | ƒ } | VqR Wd  S(   N(   RZ   R   RY   R^   (   RQ   RX   R‘   R_   R    RV   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyRJ   Ä  s    c         C   s   t  | |  ƒ S(   sE   Return series of accumulated sums (or other binary function results).(   RJ   (   t   iterablet   func(    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyRN   Ò  s    s+   Yields intermediate reductions of seq by f.c         C   s   t  t |  | | ƒ ƒ S(   s*   Lists intermediate reductions of seq by f.(   RW   RJ   (   RQ   RX   R‘   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyRK   Ø  s    c         C   s   t  t j |  | ƒ S(   s   Yields partial sums of seq.(   RJ   R“   Ru   (   RX   R‘   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyRL   Ü  s    c         C   s   t  t j |  | ƒ S(   s   Lists partial sums of seq.(   RK   R“   Ru   (   RX   R‘   (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyRM   à  s    (g   t	   itertoolsR    R   R   R   R   Rq   R   Rr   t   collectionsR   R   R“   t   compatR   Rh   R	   Ri   R
   Rd   R   Rf   R   R   R   R   R   R   t
   primitivesR   t   typesR   t
   funcmakersR   R   t   __all__R   R   R   R   R   R   R   R   R   R   R    R!   R"   R#   Rj   R%   R$   R'   R&   R(   R)   R+   R*   R-   t   from_iterableR,   R.   R/   R1   R0   R2   R3   R5   R4   R6   R7   R8   R9   R:   R;   R<   R=   R>   R?   R@   R‰   RŒ   RŽ   RA   RB   RC   RD   RE   RF   RR   RG   RH   RI   RN   R’   RJ   t   ImportErrorRu   t   __doc__RK   RL   RM   (    (    (    s,   /tmp/pip-unpacked-wheel-WgnHs6/funcy/seqs.pyt   <module>   s²   .F																												
											
										