Searching and Sorting without Loops

Searching and Sorting without Loops

Presented at San Francisco JavaScript meetup:

This talk introduces the functional programming side of JavaScript by exploring various higher-order functions of the built-in Array object. The use of these higher-order functions allows several different possible iterations without using an explicit for/while statement at all:

* Build a sequence of numbers and characters
* Create a list of all prime numbers in a given range
* Compute factorial and construct Fibonacci series
* Perform basic search operations
* Implement insertion sorting via a sorting network

For links to follow-up resources, read also:


Ariya Hidayat

January 28, 2014