## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
• Create your own community
##### Activity
Yuji Yokoo
@yujiyokoo
@adz sorry I didn't get on to it sooner but I'll do it hopefully tonight as my golfing has got to the point I can't be bothered any more :P
Yuji Yokoo
@yujiyokoo
Done. I'm quite impressed by your solutions @adz, they are great. Your golf-fu was a lot better than mine :) http://bit.ly/1H2RnGy
BTW I've converted the file to lhs to include my version too... but not sure why highlight happens in comment lines in the gist.
Cheers @yujiyokoo -- I also felt like not being bothered... I think half the exercise is to force you to consider balance of compactness vs clarity. Sometimes being more compact is more clear, sometimes not.... other thing is trawling through the docs to see common functions....
I so wanted 10.downto , or 10.times, and couldn't for the life of me think how to just get a list of numbers or loop without explicit recursion...
then realised you have literals [1..max] which is kind of similar to Ruby array methods, although haven't fully grokked what they do (they are sugar for enum* functions).
Lack of familiarity with core libs feels like coding without being able to use your hands... you know what you want, you just want a translation. Problem is it's not a straight translation (for example, python is much easier!) so you're picking up conceptual things too.
Yuji Yokoo
@yujiyokoo
Yeah, one of the patterns I noticed this week is to make an infinite sequence and transform. Like for fizzbuzz, rather than generate the next value at each step of explicit recursion, generate an infinite sequence and apply some transformation.
Rahul Trikha
@rahult
Hi guys, I have started reading up on Haskell and will be attempting the first exercise next week. Just letting you know still alive and ticking with Haskell :-)
Piotr Solnica
@solnic
Z
Awesome @rahult :) post updates or struggles here. Discussing is much more fun....
Hi @solnic...
Piotr Solnica
@solnic
hey @adz :) that was way too early for me to reply hah
Thomas Woolford
@twoolie
@adz I so wanted 10.downto , or 10.times, and couldn't for the life of me think how to just get a list of numbers or loop without explicit recursion...
• Lists of numbers : [1 .. n] desugars to enumFromTo 1 n. infinite lists: [1 .. ] desugars to enumFrom 1. works for any Enum tso you can write ['a' .. 'z'] to get all lowercase letters.
• loops without recursion: map, zip, reduce, filter, iterate are the building blocks of any control structure you can do with a loop.
Yep thanks @twoolie. That's what I realised. What about a enumeration going down?
Thomas Woolford
@twoolie
[5,4..] = enumFromThen 5 4 or [5,4..1] = enumFromThenTo 5 4 1
either that or iterate pred 10 = [10, 9 .. ]
Thanks @twoolie . I had only snatches of time so didn't read the docs carefully. Where I went wrong was not comprehending the importance of the "then" arg in enumFromThen. I see that enumFrom always uses "succ" increments... I saw this in ghci:
Prelude> [1 .. 10]
[1,2,3,4,5,6,7,8,9,10]
Prelude> [10 .. 1]
[]
... then looking at source https://hackage.haskell.org/package/base-4.8.1.0/docs/src/GHC.Enum.html#enumFromTo
think it's using typeclasses with the from/to enum function calls, but it seems to be that enumFrom is oddly defined using the ".." syntax again...
enumFrom x             = map toEnum [fromEnum x ..]
Hmm hw5 looks interesting... time to get back into it...
Dima
@drets
Hello everyone :)
Dima
@drets
Is this chat group still alive?
I am looking for people who is doing cis-194-2013, since I am bit stuck in hw7 it would be nice to cooperate and go forward through the course.
HI @drets -- it's been quiet for a while... but I'd love to pick it up again. I know some of the others are looking to get back into it too
As above... I'm on hw5, but what's your prob with hw7?
Dima
@drets
Actually I am already on hw8 :)
I just thought about cooperation or something like extreme programming, share the thoughts how to solve issue and so on, but maybe it's not easy to implement.
@drets that would be great. Async isn't extreme, but if you throw up some points we'll see if we can discuss.
I'm in Adelaide, Australia so if our time zones overlap somewhat
we could potentially pair up on Skype or google hangouts or something
I'm planning on doing some each Friday
Thomas Woolford
@twoolie
friday during the day or in the evenings?
Hey @twoolie it’s all day :)
today i’m playing with AWS ec2 api from ruby...
Thomas Woolford
@twoolie
neat
hey wanted to get down to last few FP meetups, but family kept me busy… sorry to see it stop - was fun
maybe we should just do a casual hack-night meetup rather than trying to do presentations?
Thomas Woolford
@twoolie
yeah, it was fun.
that actually sounds a lot better
Thomas Woolford
@twoolie
when would you propose a casual hack-night?
well.. problem for me is I currently co-organise AdelaideRuby and Docker meetups
but really, any day is ok for me, except when needed at home :(
Thomas Woolford
@twoolie
@adz I'm busy every second wednesday, but otherwise free. do you know of anyone else who would be keen to meet up? perhaps somewhere north of the city?
perhaps even in lieu of a physical meetup, if we could have a regular skype/hangouts session.
Sorry not replying earlier. I know of at least two others, and like the hangouts idea.
Thomas Woolford
@twoolie
fantastic. What say we aim to start early next year?
Ok let’s do it :) I gotta get back into some FP and haskell… been too busy for last month
Thomas Woolford
@twoolie
Life has an annoying habit of getting in the way
@twoolie a few of us are meeting up at the state library cafe for coffee and code this Friday. Somewhere between 7am and 8.30.. Not sure if it's too early for you, but would be cool to catch up again
Thomas Woolford
@twoolie
@adz Sorry, wasn't able to make it. Would love to catch up sometime though. Please let me know if you ever meet on a weekend or evening.