# 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/a4b4a7b9a6d8b5eb2352e26e110f1b7beffc6f62/libs/core/langchain_core/prompts/string.py#L393)