Coconut (https://coconut.readthedocs.io/en/latest/FAQ.html) seems to add very useful functional programming tools to python and can be used as a Jupyter kernel. It could be promising to use this together with R in a Rmd/qmd-File.