Stir-Fried Green Beans With Coconut

Ingredients
Method
Combine the oil, yellow split peas, and mustard seeds, if using, in a large wok, kadai, or frying pan over medium-high heat. Cook, stirring, until the split peas turn golden brown. 1 to 2 minutes. (Cover if using mustard seeds—they pop and splatter—and cook until you hear them crackle.)
Add the urad dal, chiles, curry leaves, if using, and cumin and cook uncovered, stirring, 1 more minute. (Stand back if using curry leaves; they spit when they hit the oil.)
Add the asafoetida, if using, and ¼ cup of the coconut and cook, stirring, 30 seconds. Add the beans and salt and cook, stirring, 5 minutes.
Add the remaining ¼ cup coconut, the saambhar or rasam powder, if using, and the water. Bring to a simmer, cover, and cook until the beans are tender, about 10 minutes.
Uncover and cook, stirring often, until all of the water has evaporated, about 5 more minutes. Taste for salt and serve hot.