🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-08 09:22:26 | PHP 8.2.32
📂
/ (Root)
/
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
reactivex
/
operators
/
__pycache__
📍 /opt/alt/python38/lib/python3.8/site-packages/reactivex/operators/__pycache__
🔄 Refresh
✏️
Editing: _first.cpython-38.pyc
Read Only
U v�i� � @ s� d dl mZmZmZ d dlmZmZ d dlmZ d dl m Z ddlmZ ed�Z dee e eee gee f d �d d�ZdgZdS ) � )�Callable�Optional�TypeVar)� Observable�compose)� operators)� Predicate� )�first_or_default_async_�_TN)� predicate�returnc C s | rt t�| �t�� �S td�S )a� Returns the first element of an observable sequence that satisfies the condition in the predicate if present else the first item in the sequence. Examples: >>> res = res = first()(source) >>> res = res = first(lambda x: x > 3)(source) Args: predicate -- [Optional] A predicate function to evaluate for elements in the source sequence. Returns: A function that takes an observable source and returns an observable sequence containing the first element in the observable sequence that satisfies the condition in the predicate if provided, else the first item in the sequence. F)r �ops�filter�firstr )r � r �K/opt/alt/python38/lib/python3.8/site-packages/reactivex/operators/_first.py�first_ s r )N)�typingr r r Z reactivexr r r r Zreactivex.typingr Z_firstordefaultr r r �__all__r r r r �<module> s � �
💾 Save Changes
❌ Cancel