Reduce. Filter. Map. I first learned to code for the same reason I learned foreign languages. I was promised it would change the way I think. Those three functions for transforming lists delivered so thoroughly it's hard to think without them. Algorithms of thought.
-
Prikaži ovu nit
-
Reduce: Take a list, an accumulator, and a function that looks at each item in the list one at a time, and the current value of the accumulator, and transforms the accumulator to pass on to the next value in the list. Can produce a new list, or just find a single value
1 reply 0 proslijeđenih tweetova 9 korisnika označava da im se sviđaPrikaži ovu nit -
Map and Filter are both built out of reduce
1 reply 0 proslijeđenih tweetova 6 korisnika označava da im se sviđaPrikaži ovu nit -
Filter -- take a list, and a test, return only the items of the list that meet the test criteria
1 reply 0 proslijeđenih tweetova 6 korisnika označava da im se sviđaPrikaži ovu nit -
Map -- take a list, and a transformation function, return a new list
1 reply 0 proslijeđenih tweetova 6 korisnika označava da im se sviđaPrikaži ovu nit -
In practice -- for notes Filter your notes for questions Map over your open questions and say -- how could I reframe this question to make it easier to answer -- what smaller or bigger questions help me answer this one -- how will I know I've found an answer
1 reply 2 proslijeđena tweeta 19 korisnika označava da im se sviđaPrikaži ovu nit -
Filter your notes for beliefs Map over them Ask -- How surprised would I be if this were false ("weight") -- what other beliefs do I think are true because this one is *what does this imply* -- What other beliefs, if I changed my mind about them, would change this one
2 proslijeđena tweeta 17 korisnika označava da im se sviđaPrikaži ovu nit
Even computer threads look at items in a list one at a time. They just do it quickly. No shame in doing the same
-
-
Odgovor korisniku/ci @Conaw
Turn yourself into a RISC processor.
0 replies 0 proslijeđenih tweetova 0 korisnika označava da im se sviđaHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.