2014-09-08 03:26:48 +0000mcescher(~mcescher@91.67.125.243) (Ping timeout: 250 seconds)
2014-09-08 03:30:01 +0000 <LuxuryMode> datura hey just saw your response from earlier re: using IO for consumer.nextDelivery
2014-09-08 03:30:57 +0000 <datura> LuxuryMode: sorry i can only ask stupid questions instead of being a real help...
2014-09-08 03:31:08 +0000 <LuxuryMode> hehe all good
2014-09-08 03:31:23 +0000 <datura> but then sometimes stupid questions are just what _i_ need to be asked to help me think ;)
2014-09-08 03:31:28 +0000 <LuxuryMode> tpolecat said to use scalaz.stream.async.queue which is actually what i started with
2014-09-08 03:31:42 +0000 <LuxuryMode> but i had a bunch stackoverflow issues when i tried acking messages
2014-09-08 03:31:47 +0000danclien(~danclien@108-78-174-186.lightspeed.austtx.sbcglobal.net) ()
2014-09-08 03:34:51 +0000MansurAshraf_(~textual@c-76-103-242-96.hsd1.ca.comcast.net)
2014-09-08 03:39:42 +0000 <MansurAshraf_> Hi trying to do some execises in fp in Scala and have a question:
2014-09-08 03:39:43 +0000dkristian(~dkristian@c110-23-26-175.rochd7.qld.optusnet.com.au) (Quit: dkristian)
2014-09-08 03:39:44 +0000 <MansurAshraf_> Is this correct impl fof map2 on list? def map2[A,B,C](fa: List[A], fb: List[B])(f: (A, B) => C): List[C]= for(a <-fa;b<-fb) yield f(a,b)
2014-09-08 03:40:08 +0000 <MansurAshraf_> baiscally applicative functor on list
2014-09-08 03:41:32 +0000myoriel(~Myoriel@aftr-88-217-181-68.dynamic.mnet-online.de)
2014-09-08 03:41:44 +0000 <dibblego> looks good to me
2014-09-08 03:42:06 +0000 <MansurAshraf_> I am confused why the impl on Stream is using zip?
2014-09-08 03:43:16 +0000 <dibblego> well, there are alternative implementations that use zip
2014-09-08 03:43:20 +0000 <dibblego> what is the question saying?
2014-09-08 03:45:16 +0000 <qu1j0t3> MansurAshraf_: there is an #fp-in-scala chan, btw
2014-09-08 03:46:03 +0000 <MansurAshraf_> so the impl of map2 on Stream is this in the book
2014-09-08 03:46:03 +0000 <MansurAshraf_> def map2[A,B,C](a: Stream[A], b: Stream[B])(f: (A,B) => C): Stream[C] =a zip b map f.tupled
2014-09-08 03:46:25 +0000 <MansurAshraf_> if i use the same impl on a list i will get a diff result then they way i have implemented mine
2014-09-08 03:46:29 +0000 <dibblego> yes
2014-09-08 03:46:37 +0000myoriel(~Myoriel@aftr-88-217-181-68.dynamic.mnet-online.de) (Ping timeout: 272 seconds)
2014-09-08 03:46:37 +0000 <dibblego> they are both correct answers, depending on the question
2014-09-08 03:46:41 +0000 <dibblego> what is the question?
2014-09-08 03:46:54 +0000 <MansurAshraf_> question is just to implement map2
2014-09-08 03:47:18 +0000 <dibblego> there is surely more than that
2014-09-08 03:47:22 +0000dkristian(~dkristian@c110-23-26-175.rochd7.qld.optusnet.com.au)
2014-09-08 03:48:36 +0000 <MansurAshraf_> here is the trait https://github.com/fpinscala/fpinscala/blob/master/exercises/src/main/scala/fpinscala/applicative/…
2014-09-08 03:48:46 +0000 <MansurAshraf_> and i am just trying to implement that for List
2014-09-08 03:48:54 +0000JohnFord(~jofo@50-13-230-40.gar.clearwire-wmx.net) (Ping timeout: 246 seconds)
2014-09-08 03:49:06 +0000folex(~Adium@broadband-109-173-4-143.nationalcablenetworks.ru)
2014-09-08 03:54:11 +0000folex(~Adium@broadband-109-173-4-143.nationalcablenetworks.ru) (Ping timeout: 276 seconds)
2014-09-08 03:54:51 +0000arosien(~arosien@ip70-181-123-192.oc.oc.cox.net) (Ping timeout: 272 seconds)