I see the scala one lists 1800-1900 is pizza. Is that some attempt to
exclude haskell people from nutrition?!
[1]http://dutch-scala-enthusiasts.ning.com/events/duse-viii-scalahaskell-meetup
Is that some attempt to exclude haskell people from nutrition?!
I'm sorry, I'm the one that caused the confusion. The schema below is correct. We will indeed start with pizza at 18:00, at Tricolore. You can either join us then, or join at 19:00 at the BBL, room 079 for the talks.
I will be presenting Haskell for Scala-ists, and I don't know the name of the person who will present Scala for Haskell-ists. Lieke van der Poel will present the code katas. For the code katas, it will help if you bring a laptop with a working Haskell/Scala platform.
Again, I'm sorry for causing the confusion.
groetjes,
Chris Eidhof
0628887656
> --
> You received this message because you are subscribed to the Google Groups "Dutch Haskell User Group" group.
> To post to this group, send email to dutc...@googlegroups.com.
> To unsubscribe from this group, send email to dutch-hug+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/dutch-hug?hl=en.
See you tonight,
Martijn.
I am not sure anymore, if I want to be associated with the rest of you, now that Sean threatened to expose his input behavior.
What I wanted to ask: Is anybody else coming from Amsterdam tonight and wouldn't mind to meet me say at Central Station for a joint trip into the wildernis of Utrecht, where I always tend to get lost?
Finally a DHUG meeting I can attend again! I won't be joining for
pizza since I only get off work around 6 and also need to go home to
pick up my netbook, thanks to Chris :-)
It's been ages since I last visited the Uithof, is there a special
trick to getting into BBL/which entrance to do I have to use? And is
room 079 on the ground floor, as I surmise?
See you all tonight,
Jan de Wit
It's been ages since I last visited the Uithof, is there a special
trick to getting into BBL/which entrance to do I have to use?
And is room 079 on the ground floor, as I surmise?
I had a great time tonight. :-) Thanks all.
Here is the kata we worked on:
http://codekata.pragprog.com/2007/01/kata_six_anagra.html
Sadly I haven't seen any Scala implementations of the kata. Would anyone
like to share?
Here's Sjoerd's, Karin's and my version:
> module Main where
>
> import Data.List
> import qualified Data.Map as M
>
> main :: IO ()
> main = interact go
>
> go :: String -> String
> go = unlines
> . map unwords
> . M.elems
> . M.filter (\xs -> length xs > 1)
> . foldl' (\m w -> M.insertWith (++) (sort w) [w] m) M.empty
> . words
Groetjes,
Martijn.
import io.Source
object Anagrams {
def main(args: Array[String]) {
// Read input file (arg1) into a list
val src = Source.fromFile(args(0)).getLines.toList
// Group values by a normalized value and filter out single valued list
val anagrams = src.groupBy(_.toLowerCase.toList.sorted.mkString).values.filter(_.size > 1)
// Concatenate sublists with a space separator, and the main list with a newline.
println(anagrams.map(_ mkString " ").mkString("\n"))
}
}
Kind regards,
Maarten