Find all anagrams for a word. This function only runs as fast as the test for membership in the 'dictionary' container. Args: word: Target word. dictionary: All known actual words. Returns: Anagrams that were found.
(word: str, dictionary: Container[str])
| 22 | from collections.abc import Container |
| 23 | |
| 24 | def find_anagrams(word: str, dictionary: Container[str]) -> list[str]: |
| 25 | """Find all anagrams for a word. |
| 26 | |
| 27 | This function only runs as fast as the test for |
| 28 | membership in the 'dictionary' container. |
| 29 | |
| 30 | Args: |
| 31 | word: Target word. |
| 32 | dictionary: All known actual words. |
| 33 | |
| 34 | Returns: |
| 35 | Anagrams that were found. |
| 36 | """ |
| 37 | return [] |
nothing calls this directly
no outgoing calls
no test coverage detected