# is_subsequence

> **Function** in `langchain_core`

📖 [View in docs](https://reference.langchain.com/python/langchain-core/prompts/string/is_subsequence)

Return `True` if child is subsequence of parent.

## Signature

```python
is_subsequence(
    child: Sequence[Any],
    parent: Sequence[Any],
) -> bool
```

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/1c3a4186cf2ba4f28face59118ac7786de009f91/libs/core/langchain_core/prompts/string.py#L393)