Permalink
Browse files

Change to vector to be able to chunk and use parallel fork

  • Loading branch information...
1 parent 128dfc3 commit 7d22b352a52fcf386a24a9b1ea97287c95eaf8e4 @gigasquid committed Jul 8, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/reducers/core.clj
View
@@ -4,8 +4,10 @@
(map + [1 2 3]) ;=> (1 2 3)
(class(map + [1 2 3])) ;=> (1 2 3)
-(def odyssey-text (slurp "odyssey.txt"))
-(class odyssey-text) ;=> java.lang.String
+;need a vector to be able to chunk and get size for parallel fold
+(def odyssey-text (vec (slurp "odyssey.txt")))
+(class odyssey-text) ;=> java.lang.PersistentVector
+
(first odyssey-text) ;=> \P
(class (first odyssey-text)) ;=> java.lang.Character

0 comments on commit 7d22b35

Please sign in to comment.