I hereby claim:
- I am k4y3ff on github.
- I am kf (https://keybase.io/kf) on keybase.
- I have a public key ASBxR6HmwWJMi0kbSmY_by1WnoLgbYqyueqNSDed28qC4go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
**Brief Summary** | |
As a `___ ` I did `___` and expected `___` but experienced `___`. | |
**Steps to reproduce**: | |
_if available_ | |
1. | |
2. | |
3. |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
W-Fi Network: Embassy-MTG | |
Day 1 Wi-Fi Password: 2015pdx | |
Day 2 Wi-Fi Password: 2015cog | |
Download http://cdn.cognitect.com/training/clojure-lab.zip | |
Unzip | |
cd clojure-lab | |
java -jar target/clojure-lab-0.1.0-SNAPSHOT-standalone.jar | |
open http://127.0.0.1:55555/worksheet.html?filename=src/cljlab/start.clj |
### Keybase proof | |
I hereby claim: | |
* I am kpfell on github. | |
* I am kf (https://keybase.io/kf) on keybase. | |
* I have a public key whose fingerprint is E387 3F5B 2473 9CCC B137 8E65 EC71 F6D4 2948 F178 | |
To claim this, I am signing this object: |
/* Book is talking about replacing iterators in a functional style. | |
* Gives a few examples of aspects of functional programming. | |
*/ | |
// Says to do this in Scala | |
def sumSequence(sequence: Seq[Int]): Int = | |
if (sequence.isEmpty) 0 else sequence.reduce((acc, curr) => acc + curr) | |
// When you can just do something like this | |
def sumSequence(sequnce: Seq[Int]): Int = |
import akka.actor.ActorDSL._ | |
import akka.actor.ActorSystem | |
import collection.mutable | |
import java.net.{ ServerSocket, Socket } | |
import java.io.{ BufferedReader, InputStreamReader, PrintStream } | |
// import ExecutionContext.Implicits.global | |
import java.util.TreeMap |
[info] Compiling 1 Scala source to /Users/katherinefellows/src/dynamite/dynamite-controller/target/scala-2.10/classes... | |
[error] /Users/katherinefellows/src/dynamite/dynamite-controller/src/main/scala/controller.scala:104: type mismatch; | |
[error] found : Server | |
[error] required: controller.Server | |
[error] val response = serverSwitchboard(server, splitRequest(request)) | |
[error] ^ | |
[error] one error found | |
[error] (compile:compile) Compilation failed | |
[error] Total time: 7 s, completed Aug 13, 2013 3:37:17 PM |
Katherines-MacBook-Air:dynamite-controller katherinefellows$ sbt compile | |
[info] Set current project to dynamite-controller (in build file:/Users/katherinefellows/src/dynamite/dynamite-controller/) | |
[info] Compiling 1 Scala source to /Users/katherinefellows/src/dynamite/dynamite-controller/target/scala-2.10/classes... | |
[error] /Users/katherinefellows/src/dynamite/dynamite-controller/src/main/scala/controller.scala:63: type mismatch; | |
[error] found : String("addServer") | |
[error] required: Char | |
[error] case "addServer" :: port :: Nil => hashRing.addServerToRing(port).toString | |
[error] ^ | |
[error] /Users/katherinefellows/src/dynamite/dynamite-controller/src/main/scala/controller.scala:63: type mismatch; | |
[error] found : Char |