Teaching Functional Programming Paradigm with F#
Rong Li, Huabo Lu · 2024
Functional Programming (FP) paradigm is a rising programming paradigm that varies from imperative and Object-Oriented Programming (OOP) paradigms.Most Computer Science undergraduate programs require OOP, while the functional programming paradigm is usually partially covered by a 3-credit-hour class that introduces multiple programming paradigms.F# (pronounced F Sharp) is a functional-first, general-purpose programming language.It runs on the .NET platform and is supported on Windows, Linux, and Mac OS operating systems.In this paper, we summarize our experience of using F# to teach the FP paradigm, list some sample codes, and make comparisons between the imperative paradigm and the FP paradigm.