diff options
author | iximeow <me@iximeow.net> | 2014-11-26 00:41:34 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2014-11-26 00:41:34 -0800 |
commit | 8b3cc4835c4c77df9f207bd342ffd024f0f726e7 (patch) | |
tree | 4035899e39897dbbbf3ccbfd96624fe1980fb2b2 /src/utils/ConversionUtils.scala | |
parent | 62f1fe9b3ec2a5c05c49acbf47356c28a9b73f61 (diff) |
Rest of challenge 6
also hacking junk around the frequency maps.
Diffstat (limited to 'src/utils/ConversionUtils.scala')
-rw-r--r-- | src/utils/ConversionUtils.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils/ConversionUtils.scala b/src/utils/ConversionUtils.scala index f8935f2..95d08ce 100644 --- a/src/utils/ConversionUtils.scala +++ b/src/utils/ConversionUtils.scala @@ -60,6 +60,7 @@ object ConversionUtils { implicit class RichStringBytes(s: String) { def asBytes = s.toSeq.map(_.toByte) + def asByteStream = s.asBytes.toStream } // TODO: tailrec this, get rid of for |