Skip to content

Instantly share code, notes, and snippets.

View fafafariba's full-sized avatar
🎯
Focusing

fafafariba

🎯
Focusing
View GitHub Profile
@friedbrice
friedbrice / teaching-folds.scala
Last active October 16, 2017 16:40
Teaching Folds for Understanding
// Prerequisits:
// - pattern matching (first half of Ch. 4 in LYAHFGG),
// - tail recursion vs non-tail recursion (first half of
// Ch. 1 of SICP).
// 1. Clearly and unambiguously define the problem
// (including the symbol `List').
sealed abstract class List[A]
case class Empty[A]() extends List[A]
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #