Skip to content

Instantly share code, notes, and snippets.

View gustavofranke's full-sized avatar

Gustavo Franke gustavofranke

View GitHub Profile
@kellydavid
kellydavid / file_print.scala
Created November 20, 2019 11:54
Print lines of file using ZStream
import zio._
object PrintBytes extends App {
import zio.stream._
import zio.console._
import zio.duration._
val fileName = "src/main/resources/world-cities_csv.csv"
def fileStream: StreamChunk[IOException, Byte] =

Take-home functional programming interview

This document is licensed CC0.

These are some questions to give a sense of what you know about FP. This is more of a gauge of what you know, it's not necessarily expected that a single person will breeze through all questions. For each question, give your answer if you know it, say how long it took you, and say whether it was 'trivial', 'easy', 'medium', 'hard', or 'I don't know'. Give your answers in Haskell for the questions that involve code.

Please be honest, as the interviewer may do some spot checking with similar questions. It's not going to look good if you report a question as being 'trivial' but a similar question completely stumps you.

Here's a bit more guidance on how to use these labels: