-
... presented. The framework is built up in layers. If you skip ahead to get to the cool stuff first, you will have missed some important points. Streams A stream represents a lazy sequence of values. The next value in the sequence is obtained ...
-
... returns 3 + 3 = 6 g = { 3.0.rand; }; f.value(g); // here the arg is a Function. Cool, huh? f.value(g); // try it again, different result Start to see how this could be useful? Functions can also have what are called arguments. These are val ...
-
Basic Vocabulary: Generating values Before getting to the really cool things patterns can do, we need to build up a basic vocabulary. We'll start with some words, then move into phrases in the next tutorial. Some of the patterns will be dem ...