# 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,
    parent: Sequence,
) -> bool
```

---

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