addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwchatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrosseditemptyheartexportfacebookfolderfullheartglobegmailgoogleimageimagesinstagramlinklocation-pinmagnifying-glassmailminusmoremuplabelShape 3 + Rectangle 1outlookpersonplusprice-ribbonImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruseryahoo

Examples of imperative vs functional

From: Michiel B.
Sent on: Sunday, March 11, 2012 12:20 PM
Dear Amsterdam Clojurians,

I am writing some lesson materials for a course that starts in a couple of weeks. I chose Clojure as a new language for students to learn. I would like to dedicate one chapter to refactoring imperative code to functional code. For this I would like to have a set of practical problems that are not far fetched by which I could show how imperative and functional solutions compare. Preferably the problems do NOT have an emphasis on math, like project Euler, but are problems that an average programmer needs to deal with on a regular basis. 
Preferably the problems are not too big, so you can solve them with only a couple of functions and datastructures.
All input is welcome, just send it to: [address removed].

Kind regards,

Michiel Borkent

Our Sponsors

  • Sytac

    Venue Drinks Food

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy