Okcounter
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 5 articles for 0.302 sec
ssecorp <circularfunc@gmail.com> writes: > On Jul 19, 12:05 am, "Mark T.B. Carroll" <Mark.Carr...@Aetion.com> > wrote: >> ssecorp <circularf...@gmail.com> writes: (snip) >> > classify ok spam test = spamCount / (spamCount + okCount) where (snip) > What I dont get is that / works in the second classify function since > they are essentially the same, I am dividing integers. If you try writing     

Group: comp.lang.haskell · Group Profile · Search for Okcounter in comp.lang.haskell
Author: Mark T.B. Carroll
Date: Jul 18, 2008 15:57

On Jul 19, 12:05 am, "Mark T.B. Carroll" <Mark.Carr...@Aetion.com> wrote: ssecorp <circularf...@gmail.com> writes: classify ok spam test = spamCount div (spamCount + okCount) (snip)     Couldn't match expected type `(a -> a -> a) -> Int -> t'            against inferred type `Int' (snip) div is a prefix operator because it's letters, not a symbol. To make it infix
Show full article (0.67Kb) · Show article thread
ssecorp <circularfunc@gmail.com> writes: > classify ok spam test = spamCount div (spamCount + okCount) (snip) > Couldn't match expected type `(a -> a -> a) -> Int -> t' > against inferred type `Int' (snip) div is a prefix operator because it's letters, not a symbol. To make it infix, write `div`. And, indeed, it's defined to do integer division. > and why does this work     

Group: comp.lang.haskell · Group Profile · Search for Okcounter in comp.lang.haskell
Author: ssecorp
Date: Jul 18, 2008 15:14

classify ok spam test = spamCount div (spamCount + okCount) where okCount = xInY (xmost ok 50) (words test) spamCount = xInY (xmost spam 50) (words test) Couldn't match expected type `(a -> a -> a) -> Int -> t' against inferred type `Int' In the expression: spamCount div (spamCount + okCount) In the definition of `classify': classify
Show full article (1.32Kb) · Show article thread
Sent from: [69.147.65.253] (Yahoo!) ------------------------------------------------------------------------------ $ dig -x 69.147.65.253 ;; ANSWER SECTION: 253.65.147.69.in-addr.arpa. 1200 IN PTR n21b.bullet.mail.sp1.yahoo.com. $ whois 69.147.65.253 OrgName: Yahoo OrgID: YHOO Address: 701 First Ave City: Sunnyvale StateProv: CA PostalCode: 94089 Country:     

Group: comp.lang.haskell · Group Profile · Search for Okcounter in comp.lang.haskell
Author: Mark T.B. Carroll
Date: Jul 18, 2008 15:05

Show full article (0.87Kb) · Show article thread
    

Group: comp.lang.haskell · Group Profile · Search for Okcounter in comp.lang.haskell
Author: ssecorp
Date: Jul 18, 2008 14:20

Show full article (0.85Kb)
    

Group: news.admin.netabuse.sightings · Group Profile · Search for Okcounter in news.admin.netabuse.sightings
Author: spamreport1
Date: Feb 3, 2008 01:37

Show full article (6.20Kb)