#haskell - Fri 30 Mar 2007 between 00:00 and 00:05

NY Lost Funds



rojuDo I need to convert x,y,z into Floating? If so, how do I do it?
heatsinkroju: fromIntegral
> sqrt $ fromIntegral $ succ 3
lambdabot2.0
sioraiochtsucc?
> :t succ
lambdabotParse error
rojuheatsink: thanks, that works
sioraiocht:t succ
lambdabotforall a. (Enum a) => a -> a
chessguy?src succ
lambdabotSource not found. I've seen penguins that can type better than that.
rojuWhat does the $ operator mean?
sioraiocht@src succ
lambdabotSource not found. My mind is going. I can feel it.
heatsinksioraiocht: successor
sioraiochtroju: it means treat everything to the right as one arg
heatsinkroju: It's function application. (f $ x) is (f x). It lets us use fewer parenthesis.
sioraiocht's explanation is good.
sioraiocht@src ($)
lambdabotf $ x = f x
sioraiochtis $ infixr or infixl?
Randroidsioraiocht: Your name looks Gaelic. Is it?
sioraiochtRandroid: yes, it's irish for 'eternity'
RandroidThought so.
heatsinksioraiocht: infixr
sioraiochtRandroid: An gaeilge agat?
rojuah that makes sense
Randroidsioraiocht: Nag ydy. Cymraeg.
sioraiochtRandroid: Ah =) Cymru. (that's all i know)
Randroidsioraiocht: Kewl. :)
sioraiochtmy knowledge of welsh is only how it grammatically compares to irish
(we have contact mutation, too)
roju: ($) is just an operator like any other
> ($) not 3
lambdabotadd an instance declaration for (Num Bool)
RandroidWell, grammar is what interests me the most, and ultimately it's how I got into programming, and thus Haskell, which has the most elegant 'grammar' of any programming language I know of.
sioraiochtRandroid: I'm a fan of Pascal =)
Randroidsioraiocht: No way.
Haskell is so much prettier than Pascal.

Page: 2 9 16 23 30 37 44 51 58 65 72 79 

IrcArchive

NY Lost Funds