o
    noi                  
   @   sJ   d dl Z ddee dee dedee fddZd	edee fd
dZdS )    N primary_listsecondary_list	separatorreturnc                    s*   | r|s| p|S  fddt | |D S )aM  
    Combine two lists into a single list with a separator.
    
    Args:
        primary_list (list[str]): The first list.
        secondary_list (list[str]): The second list.
        separator (str, optional): The separator used to join elements. Defaults to a space (" ").

    Returns:
        list[str]: The combined list.
    c                    s    g | ]\}}|   | qS  r   ).0item1item2r   r   N/home/ubuntu/.local/lib/python3.10/site-packages/indic_numtowords/kas/utils.py
<listcomp>   s     zcombine.<locals>.<listcomp>)	itertoolsproduct)r   r   r   r   r   r   combine   s   r   numberc                    s>    dd g fddt t d ddD  }ttd|S )z
    Split a number string into parts according to the Indian numbering system.

    Args:
        number (str): The number to split.

    Returns:
        list[str]: The list of constituent parts.
    Nc                    s"   g | ]} t |d  d| qS )   r   )max)r   ir   r   r   r      s   " z split_number.<locals>.<listcomp>   r   )rangelenlistfilter)r   partsr   r   r   split_number   s   0
r   )r   )r   r   strr   r   r   r   r   r   <module>   s    (