http://en.wikipedia.org/wiki/Functional_programming
1, The first kind-of-functional programming language I met accross is Python. As a result of meta data processing in ETM trace analysis.
It requests a elf file parsing and dictionary-made, ETMv3 protocol and ARM machine code decoding.
Finally, a function call tree will be generated based on dictionary look-up and timestamp.
based on this call tree, many statistics like in-range and out-range duration, called times.
official document for handy check. http://docs.python.org/
An instructive guide is http://stackoverflow.com/questions/739654/understanding-python-decorators, http://www.tutorialspoint.com/python/python_exceptions.htm and http://code.activestate.com/recipes/498131/
http://blog.sina.com.cn/s/articlelist_1661753547_8_1.html also contains some tips in Chinese.
2, The next functional programming language I met is SX, some extension of Scheme language.
and an on-line cmd parser. http://repl.it/
You must twist your brain to use this Scheme language.
http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme-Z-H-1.html