I have put up the source code of the standard functional language
syntax program on top of Guile mentioned in earlier posts. One can see
that Guile already has a combined imperative/functional syntax, but to
go further, it would need to be extended.
Take down the file guile++.tar.bz2 inside the folder on the webpage
below, unpack using 'tar -xjf'; inside there is a file Readme.txt with
further instructions and examples. It is possible to pretty-print as
Scheme code, so it should be easy to see what the program does.
Hans
https://www-lagring.telia.se/Shares/Home.aspx?ShareID=e195dec2-1c1a-42a1-851e-da47e674d91b