Re: [Haskell-cafe] What does :*: mean again?

2009-10-23 Thread Jake McArthur
Nothing by itself. It's just a definable constructor of some sort. - Jake ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] What does :*: mean again?

2009-10-23 Thread Don Stewart
gue.schmidt: Günther Usually it is a strict product. It's just a type constructor of some sort though ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] what does @ mean?.....

2008-01-06 Thread Derek Elkins
On Fri, 2007-12-28 at 09:51 -0700, Luke Palmer wrote: On Dec 28, 2007 9:35 AM, Jules Bean [EMAIL PROTECTED] wrote: In particular, adding sharing can stop something being GCed, which can convert an algorithm which runs in linear time and constant space to one which runs in linear space (and

Re: [Haskell-cafe] what does @ mean?.....

2007-12-28 Thread Alfonso Acosta
@ works as an aliasing primitive for the arguments of a function f x@(Just y) = ... using x in the body of f is equivalent to use Just y. Perhaps in this case is not really useful, but in some other cases it saves the effort and space of retyping really long expressions. And what is even more

RE: [Haskell-cafe] what does @ mean?.....

2007-12-28 Thread Nicholls, Mark
, Mark Cc: haskell-cafe@haskell.org Subject: Re: [Haskell-cafe] what does @ mean?. @ works as an aliasing primitive for the arguments of a function f x@(Just y) = ... using x in the body of f is equivalent to use Just y. Perhaps in this case is not really useful, but in some other cases

Re: [Haskell-cafe] what does @ mean?.....

2007-12-28 Thread Chaddaï Fouché
2007/12/28, Alfonso Acosta [EMAIL PROTECTED]: @ works as an aliasing primitive for the arguments of a function f x@(Just y) = ... using x in the body of f is equivalent to use Just y. Perhaps in this case is not really useful, but in some other cases it saves the effort and space of

Re: [Haskell-cafe] what does @ mean?.....

2007-12-28 Thread Chaddaï Fouché
2007/12/28, Nicholls, Mark [EMAIL PROTECTED]: So in the example given... mulNat a b | a = b = mulNat' a b b | otherwise = mulNat' b a a where mulNat' x@(S a) y orig | x == one = y | otherwise = mulNat' a (addNat orig y) orig

RE: [Haskell-cafe] what does @ mean?.....

2007-12-28 Thread Nicholls, Mark
Lovelythank you very muchanother small step forward. -Original Message- From: Chaddaï Fouché [mailto:[EMAIL PROTECTED] Sent: 28 December 2007 11:29 To: Nicholls, Mark Cc: Alfonso Acosta; haskell-cafe@haskell.org Subject: Re: [Haskell-cafe] what does @ mean?. 2007/12/28

Re: [Haskell-cafe] what does @ mean?.....

2007-12-28 Thread Alfonso Acosta
On Dec 28, 2007 12:21 PM, Nicholls, Mark [EMAIL PROTECTED] wrote: So in the example given... Is equivalent ? Yes, it is ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] what does @ mean?.....

2007-12-28 Thread Serge LE HUITOUZE
Jedaï wrote: [...] Yes, but in the second version, it has to reconstruct (S a) before comparing it to one where in the first it could do the comparison directly. In this cas there may be some optimisation involved that negate this difference but in many case it can do a real performance

Re: [Haskell-cafe] what does @ mean?.....

2007-12-28 Thread Jules Bean
Serge LE HUITOUZE wrote: I tend to believe that the '@' notation is mere syntactic sugar. Indeed, it seems to me that Haskell compilers need not to be very clever to share the identical sub-expressions, for one very simple reason implied by Haskell semantics: referential transparency. Am I

Re: [Haskell-cafe] what does @ mean?.....

2007-12-28 Thread Luke Palmer
On Dec 28, 2007 9:35 AM, Jules Bean [EMAIL PROTECTED] wrote: In particular, adding sharing can stop something being GCed, which can convert an algorithm which runs in linear time and constant space to one which runs in linear space (and therefore, perhaps, quadratic time). I've heard of this

Re: [Haskell-cafe] what does @ mean?.....

2007-12-28 Thread Jules Bean
Luke Palmer wrote: On Dec 28, 2007 9:35 AM, Jules Bean [EMAIL PROTECTED] wrote: In particular, adding sharing can stop something being GCed, which can convert an algorithm which runs in linear time and constant space to one which runs in linear space (and therefore, perhaps, quadratic time).

Re: [Haskell-cafe] what does ' mean?

2005-07-18 Thread Sun Yi Ming
the xs' is just a variable as xs,xs_, _xs. perhaps imply some relations with the counterpart without apostrophe suffix,but this is not mandatory. - Original Message - From: Logesh Pillay [EMAIL PROTECTED] To: haskell-cafe@haskell.org Sent: Monday, July 18, 2005 3:37 AM Subject:

Re: [Haskell-cafe] what does ' mean?

2005-07-17 Thread Jonathan Cast
Logesh Pillay [EMAIL PROTECTED] wrote: Dear list A v. newbie question. I found the following code on the web /-- Andrew Bromage / /-- If you're doing permutations, then I suppose you want this too: //-- (subLists might be a more suggestive name) /combinations *:: [a] - [[a]]

Re: [Haskell-cafe] what does ' mean?

2005-07-17 Thread yin
Logesh Pillay wrote: I found the following code on the web /-- Andrew Bromage / /-- If you're doing permutations, then I suppose you want this too: //-- (subLists might be a more suggestive name) /combinations *:: [a] - [[a]] *combinations [] = [[]] combinations (x:xs) = combinations