Lesson 42. Efficient, stateful arrays in Haskell

After reading lesson 42, you’ll be able to

  • Use the UArray type for efficient storage and retrieval
  • Perform stateful computation on arrays with STUArray
  • Treat properly encapsulated, stateful functions as pure functions

After finishing this book on Haskell, you get a call from a recruiter at GooMicroBook asking if you’d like to interview. You say you’d love to, and the recruiter mentions that there will be a coding interview in the programming language of your choice. “Any language I want?” you eagerly ask. The recruiter confirms that, yes, you can use any language. With delight, you say you’d like to do the interview in Haskell.

You get to your interview, and your interviewer walks in the ...

Get Get Programming with Haskell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.