Skip to content

Instantly share code, notes, and snippets.

View DzmitryKalachou's full-sized avatar

Dzmitry Kalachou DzmitryKalachou

View GitHub Profile
@DzmitryKalachou
DzmitryKalachou / ladder.md
Created May 7, 2021 14:24 — forked from jamtur01/ladder.md
Kickstarter Engineering Ladder
@DzmitryKalachou
DzmitryKalachou / branch-fu.md
Created October 4, 2018 18:52 — forked from unbracketed/branch-fu.md
Moving commits between branches

Example: Moving up to a few commits to another branch

Branch A has commits (X,Y) that also need to be in Branch B. The cherry-pick operations should be done in the same chronological order that the commits appear in Branch A.

cherry-pick does support a range of commits, but if you have merge commits in that range, it gets really complicated

git checkout branch-B
git cherry-pick X
git cherry-pick Y

Advanced Functional Programming with Scala - Notes

Copyright © 2017 Fantasyland Institute of Learning. All rights reserved.

1. Mastering Functions

A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.

val square : Int => Int = x => x * x