What's the difference between まま and っぱなし？


I do understand that they can be interchangeable, but can you provide me some
example to understand the difference?




まま- helpful link

<http://japanesetest4you.com/flashcard/learn-
jlpt-n3-grammar-%E3%81%BE%E3%81%BE-mama/>

っぱなし- helpful link

[https://japanesetest4you.com/flashcard/learn-jlpt-n3-grammar-っぱなし-
ppanashi/](https://japanesetest4you.com/flashcard/learn-
jlpt-n3-grammar-%E3%81%A3%E3%81%B1%E3%81%AA%E3%81%97-ppanashi/)

basically まま is used when we keep something "as it is" and っぱなし is used to
when we keep something in "use"

