Skip to content

Instantly share code, notes, and snippets.

@andrevidela
Last active January 7, 2019 14:39
Show Gist options
  • Save andrevidela/ce1330b6c7e409afcb890a1fc837673f to your computer and use it in GitHub Desktop.
Save andrevidela/ce1330b6c7e409afcb890a1fc837673f to your computer and use it in GitHub Desktop.
let constOne = Linear(x: 0, c: 1)
let constThree = Linear(x: 0, c: 3)
let verySteep = Linear(x: 200, c: -5)
let moveUpByThree = { $0 + constThree }
constOne + Linear.addId == constOne
moveUpByThree(constOne)
285 ◊ verySteep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment