Questions tagged [scalaz]

Type classes and purely functional data structures for Scala

Filter by
Sorted by
Tagged with
7
votes
1answer
249 views

Functional K-way merge (Merge k sorted sequences)

I've implemented a functional k way-merge algorithm to merge k sorted sequences of any type T. I used scalaz's Heap since the Scala standard library does not provide an immutable heap. Any suggestions ...
0
votes
1answer
366 views

Simple Scala money library

for some fun, I decided to start working on something that let me work with Money calculations. I realise there are libraries out there like Joda Money, but I'm doing this mainly for fun. I was ...
1
vote
0answers
201 views

Merging trees in scalaz

I just built a function to merge a set of List[A]s into a single scalaz.Tree[A]. Specifically, if I have the following three <...
1
vote
0answers
35 views

Stronger Functor TypeClass

I'm working on arrow library for scala I've come with some new typeclass, which looks like generalized Functor ...
6
votes
1answer
152 views

Caching side effects

Is this a proper way to cache side effects (occurring on job.tryLoad)? ...
1
vote
0answers
520 views

Scalaz state monad exercise to model sampling of coloured balls

Here is a self imposed exercise and solution to learn Scalaz state monad. How can I refactor it to take it to the next level? So far I've only studied the state monad so would welcome suggestions on ...
16
votes
1answer
2k views

Simple anagram finder using Scala and some Scalaz

I'd like to hear some thoughts on my simple anagram finder, written in Scala. I mainly wrote this as a first go at writing some serious Scala, and I wanted to try out the Scalaz library. I'm coming ...