Created
January 7, 2019 17:21
-
-
Save sslotsky/e51da09b39f671465c68009a0d6648ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let (captured, falling) = | |
List.partition(w => w.text == ui.input(), state.words); | |
let (crashed, remaining) = List.partition(w => w.y > ui.height, falling); | |
let newWords = | |
remaining |> List.map(word => {...word, y: word.y +. word.velocity}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment