tag:blogger.com,1999:blog-563596196398371349.comments2013-09-25T20:52:30.031-07:00Scala Eye for the Java GuyAnonymoushttp://www.blogger.com/profile/15752542489909389878noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-563596196398371349.post-19838755675306482962013-09-25T20:52:30.031-07:002013-09-25T20:52:30.031-07:00Dou itashimashite!Dou itashimashite!Semeruhttps://www.blogger.com/profile/14805452266182557876noreply@blogger.comtag:blogger.com,1999:blog-563596196398371349.post-35875788535327125732013-09-24T23:53:47.625-07:002013-09-24T23:53:47.625-07:00Arigatou gozaimasu, semeru-sanArigatou gozaimasu, semeru-sanAnonymoushttps://www.blogger.com/profile/15752542489909389878noreply@blogger.comtag:blogger.com,1999:blog-563596196398371349.post-15314525987479318252013-09-24T08:30:33.187-07:002013-09-24T08:30:33.187-07:00One nit: your #6 above says the type is "imp...One nit: your #6 above says the type is "implicit". You should probably avoid that terminology, as it is a different concept in Scala. Better terminology here is that the type is "inferred" (by the compiler).Semeruhttps://www.blogger.com/profile/14805452266182557876noreply@blogger.comtag:blogger.com,1999:blog-563596196398371349.post-90963902516758099262013-08-12T03:37:16.683-07:002013-08-12T03:37:16.683-07:00NP. Glad it helped. I really like the Koans. The...NP. Glad it helped. I really like the Koans. They need a few tweaks though (IMHO). I need to get round to submitting them...Anonymoushttps://www.blogger.com/profile/15752542489909389878noreply@blogger.comtag:blogger.com,1999:blog-563596196398371349.post-7133399193490551012013-08-12T00:00:32.668-07:002013-08-12T00:00:32.668-07:00Thanks for your post. This whole time I thought I ...Thanks for your post. This whole time I thought I was doing something wrong. I'm glad there was a solution.Robertohttps://www.blogger.com/profile/13197991617251767703noreply@blogger.comtag:blogger.com,1999:blog-563596196398371349.post-4949880123079990492013-05-28T00:17:47.449-07:002013-05-28T00:17:47.449-07:00Thanks @Semeru. I hadn't expected to get comme...Thanks @Semeru. I hadn't expected to get comments on these posts. This is helpful though. I'm beginning to realise I need to change my mind to match Scala rather than the other way round. I think your second comment really adds to my understanding of this particularly. Thanks very much. I'll keep posting and hopefully you can keep pointing me in the right direction. Anonymoushttps://www.blogger.com/profile/15752542489909389878noreply@blogger.comtag:blogger.com,1999:blog-563596196398371349.post-9876106324769007892013-05-28T00:14:09.756-07:002013-05-28T00:14:09.756-07:00Thanks @Semeru. I'm fighting the many urges I...Thanks @Semeru. I'm fighting the many urges I'm getting to jump ahead (post on that coming soon).Anonymoushttps://www.blogger.com/profile/15752542489909389878noreply@blogger.comtag:blogger.com,1999:blog-563596196398371349.post-89582145299690559542013-05-21T15:58:27.032-07:002013-05-21T15:58:27.032-07:00The main key for map is to think (for now) that yo...The main key for map is to think (for now) that your function doesn't make the list bigger or smaller - your function does not change one input item into more than one output item. There's a way to do that, which is actually pretty cool, but we'll worry about that once you get there. For now, you can manipulate the values while maintaining type, you can change type, etc, but will keep the same number of items.<br /><br />By combining map and filter (or filterNot) you can manipulate the values and then remove some. Picture your assembly line (map) adding some piece to the item, then a quality check (filter) making sure that the items pass muster. Semeruhttps://www.blogger.com/profile/14805452266182557876noreply@blogger.comtag:blogger.com,1999:blog-563596196398371349.post-66103359826902525782013-05-21T15:49:01.044-07:002013-05-21T15:49:01.044-07:00Maybe think of map as a little assembly line. Imag...Maybe think of map as a little assembly line. Imagine telling your son to take one bite from each crisp on his plate, leaving the rest behind. The "take one bite" is the function, the plate full of intact crisps is the starting list, and the plate full of crisp-halves is the result list.<br /><br />Or if you want a mnemonic which includes the word "map", imaging handing your son a stack of black and white maps and telling him to color in one country. First list = black and white maps, function = "color in a country", and result = partially colored maps.Semeruhttps://www.blogger.com/profile/14805452266182557876noreply@blogger.comtag:blogger.com,1999:blog-563596196398371349.post-48634071290331786732013-05-21T15:39:06.725-07:002013-05-21T15:39:06.725-07:00Definitely patience about the currying. About the ...Definitely patience about the currying. About the only reason I can think you want this comment is so that you can review later. Otherwise the comment seems to distract as much as it enlightens. On second thought, the currying syntax is different from the direct application syntax so either seems like a bit leap.Semeruhttps://www.blogger.com/profile/14805452266182557876noreply@blogger.com