Part of the Fundamentals of Functional Programming document.
Prev: FOFP 1.1 Introduction
To start exploring some of the fundamental concepts of functional programming, you don’t need anything more than you’ve probably already got. Of course, there are “more” functional languages such as Haskell, Standard ML, and various dialects of Lisp, such as Scheme, Common Lisp and Clojure. But there’s a language that’s pretty ubiquitous and that has some very good support for core functional programming concepts.
Getting ready to explore
Open up Google Chrome, and in a new tab, open up the Developer Tools using either the menu as shown, or using Ctrl-Shift-I (or Cmd-Shift-I on a Mac), or F12.
You’ll see something like this:
The developer tools have opened up next to the tab you’re on. Choose the “Console” entry in the menu at the top, to switch to the console, or REPL. You may see some error messages relating to the tab that’s open (even a simple “new” tab), but you can ignore them1. You might also want to detach the developer tools using the “Dock side” option (press the three vertical dots to get this menu) - choose the double-pane icon “undock into separate window”.
At this stage, you’re ready to explore.
You can clear the console, and therefore remove the errors, with Ctrl-L (or Cmd-L on a Mac). ↩