eason
>behind some of these outputs?
When you say
:: [Word8]
what you're effectively saying is
`mod` 256
because that's what fits into a slot that's 8 bits wide.
So:
1000 `mod` 256 = 232
10000 `mod` 256 = 16
and so on.
-Steve Schafer
(which appears to be the
way that GHC operates).
>I guess on Windows, "as far as possible" means locking it across the
>whole system.
Windows does allow finer-grained control (including byte-range locking),
but most applications don't bother.
-Steve Schafer
___
t hiring a Haskell developer instead of a
Rails, etc. developer will result in more chaos when said developer is
hit by a bus?
-Steve Schafer
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Tue, 27 Sep 2011 13:13:39 -0600, you wrote:
>On Tue, 2011-09-27 at 12:36 -0400, Steve Schafer wrote:
>> [0.1,0.2..0.5] isn't the problem. The problem is coming up with
>> something that not only works for [0.1,0.2..0.5], but also works for
>> [0.1,0.2..1234567890
ething that not only works for [0.1,0.2..0.5], but also works for
[0.1,0.2..1234567890.5].
A good rule of thumb: For every proposal that purports to eliminate
having to explicitly take into consideration the limited precision of
floating-point representations, there exists a trivial example that
a big role in
cryptography. But those are invariably FIXED LENGTH multiple-byte
integers. As I mentioned before, to the best of my knowledge, no one
uses variable-size representations in those kinds of
computationally-intensive applications.
-St
variable-length types (and I
would think that such a PRNG wouldn't be very efficient), so I'm still
not sure that I understand the question.
-Steve Schafer
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
if the desire is to
take an integer n and generate a set of pseudorandom numbers ranging
from 0 to n-1, that's easily done using the standard random number
methods.
-Steve Schafer
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
nough so
that it's unlikely that a single function (other than simply taking the
logarithm) can handle the majority of applications.
-Steve Schafer
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
do static analysis, there would be no need for
garbage collection as it is currently implemented--the compiler would be
able to insert explicit object lifetime management directly into the
code.
-Steve Schafer
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
ration files, etc.).
As for Haskell, I would still vote for UTF-8 only, though. The only
reason to favor anything else is legacy compatibility with existing
Haskell source files, and that isn't really an issue here.
-Steve Schafer
___
Haskell-Caf
d fail to parse that sequence.
If that's not happening, then there's something wrong with the way
you've expressed your grammar.
I don't know how much experience you have with language grammars, but it
might be helpful to try to write down MMIXAL's grammar using EBNF
not
're describing exactly how a parser is supposed to work,
so it's not clear what the problem is...)
-Steve Schafer
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Wed, 27 Oct 2010 14:13:31 +0100, you wrote:
>They're just figureheads for a shadowy cabal :-D
You mean the Haskelluminati?
-Steve Schafer
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
ave that limitation), you
can make it work for larger numbers/longer strings:
genbin n = map (showFixed n) [0..2^n-1::Integer]
-Steve Schafer
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
-friendly
file as often as you want, and the preprocessor is invoked
automatically, as needed.
-Steve Schafer
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Fri, 8 Oct 2010 09:56:07 +0200, you wrote:
>Unfortunately, "hurry" is pronounced differently in British and US
>English [1], so again I was a little bit confused :-).
>[1] http://en.wiktionary.org/wiki/hurry#Pronunciation
The US sample is correct for someone from California, but it's not the
box in a
certain order). On the other hand, if they possess an ordering, it
implies that someone or something put them in that order; i.e., that it
was a purposeful act.
I think the reason for this conceptual distinction can be traced to the
derivation of "ordering" as the gerund form o
On Sat, 2 Oct 2010 11:02:21 -0700, you wrote:
>I imagine someone looking at a lovely app and saying, "Wow -- great
>interface! I bet it was programmed in Haskell."
While I can agree with the sentiment...well, good luck with that. ;-)
t's basically what I was trying to say: The project is too
big for one person, or a small group of people. But it also can't happen
unless there's a shared understanding of what is important and why it is
important, and that's wh
go: "Hey, you know what? This GUI stuff is
_important_ if we want people to pay any attention to the software that
we write!"
-Steve Schafer
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
erested in developing applications,
not wrestling with GUI toolkits.
-Steve Schafer
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Tue, 10 Aug 2010 18:27:49 -0300, you wrote:
>Nope. For example, suppose we have:
>
> int randomNumber(int min, int max);
>
>Equivalentely:
>
> randomNumber :: Int -> Int -> IO Int
>
>In Haskell if we say
>
> (+) <$> randomNumber 10 15 <*> randomNumber 10 15
>
>That's the same as
>
> let x
On Fri, 23 Jul 2010 18:08:39 +0100, you wrote:
>Anybody have any theroes why Trend Micro Antivirus is reporting this as
>a "confirmed fraud/attack site"?
Because someone somewhere has used the nyud.net distribution service to
distribute malware. Since it's a free service, it's pretty much
guaran
On Fri, 9 Jul 2010 17:14:31 +0200, you wrote:
>One of the "nice" things about English is that there is often never an
>"always." See http://grammar.quickanddirtytips.com/ie-eg-oh-my.aspx for a
>discussion.
Well, that page pretty much confirms what I said. In AMERICAN English,
they're always follo
On Fri, 09 Jul 2010 10:07:06 -0400, you wrote:
>I don't think I've ever seen them *followed* by commas. Preceded, always.
In American English, they're always followed by commas, and preceded by
comma, semicolon, dash or left parenthesis, depending on the specific
context.
Examples from various
On Wed, 16 Jun 2010 18:30:47 +0200, you wrote:
>Then I thought, what if I replace the (*) and (+) operations which are applied
>when I multipy the matrix with a vector (i.e. a vector if inputs or outputs)
>by something more general. So I replaced (+) by function application and my
>matrix was n
On Tue, 15 Jun 2010 19:23:35 +0200, you wrote:
>When I know my supplies I want to know what I can produce. When I know what I
>want to produce I want to know what supplies I need for that. Both kinds of
>questions should be answered by a singe Process thingy.
>
>I want to be able to chain proces
held entirely in volatile memory, and explicitly
takes advantage of known characteristics of disk latency, etc., could
very well be patentable.
-Steve Schafer
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Tue, 06 Apr 2010 14:57:30 +0200, you wrote:
>I agree, and this is why I phased out "apfelmus" in favor of the
>pseudonym "Heinrich Apfelmus".
You mean your name isn't really "Applesauce"?
Steve Schafer
_
e for discrimination against individual As or Bs, because there
is nearly always substantial overlap between the categories in whatever
criterion it is that you're measuring.
-Steve Schafer
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http:/
individuals."
-Steve Schafer
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
greatest possible modularity, because
the lower level operations don't have to worry about failures at all.
You generally only care about atomicity at some outer, "observable"
level; there is rarely any point in worrying about "nested atomicity."
Steve Schafer
___
he knowledge about the internal redundancy of the keys to come
up with an efficient function?
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
(syntax-rules ()
((when test stmt1 stmt2 ...)
(if test
(begin stmt1
stmt2 ...))
(let ((if #t))
(when if (set! if 'now))
if))
Evaluating the above returns "
case. And in the latter example, my eyes would actually be drawn away
from Preset/Present and towards Colour, noticing that it is spelled
incorrectly...
Count me in the "prefers hyphens" camp, by the way.
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
_
Here is some furniture that ought to appeal to the Haskell afficionado:
http://karl-andersson.se/view_product.asp?rangeId=39&catId=2&picture=2
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mailing list
xtile printing (if that is
>the right term in english) on plush sloth bears.
A sloth bear is a kind of bear, not a sloth. Amazon also has some sloth
stuffed animals, too. If you get one that's reasonably large, then you
can get a lambda-imprinted Cafe Press t-shirt in an infant size that
wo
ain, do engineers know *what* stress is? Do they understand terms
>like `tensor'? Those things are the rough equivalents of terms like
>`monoid'.
Stress, probably, at least in basic terms. Tensor, probably not.
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com
u on an interminable
Alice-in-Wonderland-esque journey that never seems to get anywhere.
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
and far between. If you aim your product only at the kinds of engineers
who _can_ do those things, you will be reaching a tiny, tiny fraction of
the overall population.
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe m
you should certainly care
about that magnitude of error.
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Fri, 09 Jan 2009 09:28:49 -0600, you wrote:
>I'm not sure that the original question implied *that* level of need.
I can't imagine being worried about leap seconds yet at the same time
being willing to accept the potential vagaries of any of the built-in
clocks.
Steve Sch
roach that I can think of is if the
hospital is in an urban area with lots of tall buildings, it might be
difficult to obtain a GPS signal of high enough quality. Some of the
purpose-built GPS time receivers have better antennas than a
consumer-grade GPS device.
Steve Schaf
gram, one that has some of the "look and feel"
of what programmers from other languages are comfortable with. And then
transform that program, step-by-step, into something that takes
advantage of Haskell's strengths.
Steve Schafer
Fenestra Technolog
he identity
function, in fact) that also has a side effect.
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
and
which one of these is what you see reported in the Properties dialog,
but it's quite possible that you're setting the value of the "wrong"
one, and that's why you're not seeing what you expect.
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
or example, in an
application I wrote recently, I used custom resources to embed a set of
TrueType fonts into the EXE.)
There are a gazillion resource editors available for modifying the
resources linked into an EXE; go to the Wikipedia page for a reasonable
starting point:
http://en.wikipedia.org/wiki
n at the end. Not sure what that is all about.
This is known as name mangling. See the Wikipedia article for more info:
http://en.wikipedia.org/wiki/Name_mangling
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mai
algorithm points will necessarily map to the
same screen pixel.
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
;natural" way. To which
my rejoinder is, "To what end?" To extend the _syntax_ of the type
system in a way that allows such "natural" expression turns it into yet
another programming language. So what have we gained?
Steve Schafer
posed the question
of using the type system to solve one of the liar/truthteller logic
problems. And so on.
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskel
that was the original point of
this discussion. After all, Andrew's original message mentioned "stuff
the type system was never designed to do."
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mailing
x -> List (n+m) x
>
>and so forth.
How, then, is that any different from a general-purpose programming
language? You're just drawing the "line in the sand" in a different
place. You end up with a programming system where compilation is a "side
effect" of exec
ee the same thing if you
use the DIR command from a command-line prompt.
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Mon, 27 Aug 2007 19:05:06 +0200, you wrote:
>Where do I go wrong (I)?
b is defined to be _half_ of the chord (the "semichord," I suppose).
You're assuming it to be the entire chord.
Steve Schafer
Fenestra Technologies Corp.
http:
On Sun, 26 Aug 2007 21:30:30 -0400, you wrote:
>I don't know offhand if there's a straightforward way to arrive at this
>result without using trigonometry.
Duh. Of course there is....
Steve Schafer
Fenestra Technologies Corp.
http://
of the angle between the two radii as drawn in the
picture.
Then:
x = a * (1 - cos @)
Using the trigonometric identity sin^2 @ + cos^2 @ = 1 and rearranging,
we get:
x = a - sqrt(a^2 - b^2)
I don't know offhand if there's a straightforward way to arrive at this
result without using trig
On Thu, 16 Aug 2007 00:05:14 +0200, you wrote:
>I'm not sure what you mean by "with replacement"
"With replacement" means that you select a value from the source, but
you don't actually remove it. That way, it's still available to be
selected again later
ut you forgot to recursively apply the hint. ;)
The problem states that after John answers the second question, the
Logician knows the solution. How can this be? What answer did John give
that allows the Logician to solve the problem?
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestr
t","Yes","Yes")
>("John is a knave ","Bill is a knave ","Yes","No ")
>
>Anyone has an idea what I missed here?
You're missing a key element of the problem: After John answers the
first question, the Logic
one that is inherently more complex and
thus more likely to cause angst among beginners.
Or are you proposing to get rid of layout altogether and rely on
punctuation?
I just can't think of a rule that would be easier to understand (and
quicker to assimilate) than the current one.
Steve
On Thu, 19 Jul 2007 12:30:06 -0700 (PDT), you wrote:
>I have defined the first line it seems right to me
Close, but not quite. Think of the result that line would give on
[1,1,2].
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.
On Thu, 19 Jul 2007 19:26:39 +0100, you wrote:
>Actually, since Haskell is lazy and only the first element is required
>for minimumValue, the above algorithm should be O(n).
You're right (as long as the sort algorithm itself is sufficiently lazy,
of course).
Steve Schafer
Fenestra T
On Thu, 19 Jul 2007 10:55:19 -0700 (PDT), you wrote:
>The question suggests to use some functions defined in the section, and one
>of them is iSort.
Aha. Well, that one certainly lends itself better to this particular
proplen than either map or filter.
>minimumValue :: [Int] -> Int
>minimumValue
and it
didn't work," the welcoming response is NOT, "Oh, don't do that; do this
other [less intuitive] thing instead." The welcoming response is to fix
the damn thing so that the intuitive approach works!
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
_
)
Haskell is about improving software quality. A meaningful benchmark
would be one that compares end-to-end software development lifecycles,
including not only runtime performance, but also development costs,
debugging and maintenance time, reliability, etc.
Steve Schafer
Fenestra Technologi
ir worries.
Programming GUIs is about the only reasonably common I/O-related task
that has any sort of complexity. Most everything else is reading or
writing streams of bytes; the hard part is what happens between the
reading and the writing.
Steve Schafer
Fenestra Technologies Corp.
mbers of themselves. Look
up "Russell's Paradox" in Wikipedia.
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
il the
first non-ASCII character was encountered.
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
nd you can't
remember which Int does what, then you have only yourself to blame
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
ments for Haskell, but I don't
think any of them are particularly popular.
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
or doesn't properly understand UTF-8. A BOM
character isn't required for UTF-8 (it really only makes sense with
UTF-16), but a UTF-8-aware processor should skip right over it if it's
there.
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
__
y best to go along with whatever de facto standard there is, if
for no other reason than to avoid going insane.
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
since 1 > 0, TRUE > FALSE.
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
ists look like this:
mylist = [[
item_1_1,
item_1_2], [
item_2_1,
item_2_2]]
Another alternative:
mylist =
[ quite_lengthy_list_item_number_one
, quite_lengthy_list_item_number_two
, quite_lengthy_list_item_number_three
]
which looks very weird but makes sense, in a twiste
d to read code
containing $'s is simpler than that required for parentheses.
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
old iSine)
>
> act :: Integer -> ISine -> [[Char]]
> act time (ISine p o t (MetaTail s)) =
> if on time (ISine p o t (MetaTail s))
> then foldr1 (++) (map (act time) (sub_sines (ISine p o t (MetaTail s
> else []
>
> act tim
t
>offering your assistance?
Neither, just curious. While I can see how some characters might cause
problems, I couldn't understand why non-breaking spaces would.
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe
Which is why I asked specifically about that.
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
to avoid special characters, but out of
curiosity, what exactly is the problem with screen readers and the NO
BREAK SPACE character (which is pretty ubiquitous in HTML)?
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mail
strong that I'm
far from alone in my assessment. Whether or not it's hard for any
particular person is up to that individual to judge, of course. I stick
with Haskell because (a) I think it just might be worth it, and (b) I
can't help myself--I have an insatiable craving for new know
ftware is hard, regardless of the
choice of language. Perhaps what sets Haskell apart is that, unlike most
languages, it also makes writing _bad_ software hard. ;)
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mailin
ng better (they just
aren't sure what it is). The rest aren't really interested, and if at
some future point they become interested, they'll find the way on their
own.
Steve Schafer
Fenestra Technologies Corp.
http:/www.fenestra.com/
__
o the references cannot refer to page
>numbers, yet must be processed after transforming questions to rectangles?
It's not until you get to the "rectangles" level that you can see the
text and tokens that need to be replaced.
Thanks for all of the discussion. I think I have a lot to ponder
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
that needs to be propagated into a "long-lived" structure
like the pagemaster.
>>> pages' = combineRows pages;
>>> sfo = createSFO pages' sequenceLayouts;
>>> in sfo
>(can't guess on that)
SFO is the final XML-format
exactly the same
kinds of problems that the textual Haskell has....
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Fri, 29 Dec 2006 14:23:20 +0300, you wrote:
>it force you to give names to intermediate results which is considered as
>good programing style - program becomes more documented.
But that would imply that function composition and in-line function
definition are also Bad Style.
Steve S
On Fri, 29 Dec 2006 09:01:37 -0800, you wrote:
>Steve Schafer wrote:
>>
>> I can easily rewrite it in point-free style:
>>
>> process1 = baz . bar . foo
>
>Not unless you have a much fancier version of function composition,
>like...
>
>http:
way to do it, that would be even better, but I've
never seen such a thing (short of doing lots of tupling and
un-tupling).
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
d -> Language -> [NumberedQuestion] ->
> ([Band],[SequenceLayout])
> resolveCrossReferences :: [Band] -> [Band]
> groupBands :: [Band] -> [[Band]]
> paginate :: Item -> MediaKind -> MediaSize -> Pagemaster -> [[Band]] -> [Page]
&
hough it does still require at
least one temporary variable. I'll have to think about it a bit to see
how applicable it is in general. Thanks.
The tuples do make things a bit messy; they could easily be removed at
the cost of introducing a few more steps:
(y07,y08) = f07 y01 y06;
he picture isn't cluttered with intermediate values whose
only purpose is to hold onto things I need later, but not right now.
So here's the (restated) question: Is there some way to represent the
process in good ol' text form that preserves the elegance and
conciseness of
7;s very true, but the same could be said for many other examples
of the use of the State monad (and Reader and Writer as well). They
frequently don't do anything that couldn't be done purely
functionally.
Steve Schafer
Fenestra Techn
cember/018917.html
Thanks. I should have realized that Oleg would have had something to say
about it. ;)
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailma
g to explicitly pass all of the various bits of state
around? The (unattainable?) ideal would be something that looks like
this:
process = f14 . f13 . ... . f01
or
process = f01 >>= f02 >>= ... >>= f14
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com
eases equational reasoning?
The classic example of this is a problem that has a finite solution, but
whose solution is most clearly expressed in terms of operations on
infinite structures.
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
_
To: "Creighton Hogg" <[EMAIL PROTECTED]>
Subject: Re: [Haskell-cafe] Picking out elements of a heterogenous list
From: Steve Schafer <[EMAIL PROTECTED]>
Date: Tue, 05 Dec 2006 12:33:16 -0500
On Tue, 5 Dec 2006 11:08:07 -0600, you wrote:
>Hi Haskell-ers,
>So I th
| Float Float
deriving Show
Finally, constructing new instances of this homogenous wrapper in
Haskesll is just like it is in Java:
myList = [(Integer 42), (Character 'a'), (Float 3.14159)]
vs.
myList = new LinkedList();
myList.add(new Integer(42));
myList.add(new Character(
No, you missed a part of the second rule: If there are multiple
occurrences of a string, the _first_ occurrence has to be tagged, too,
not just the second through n'th occurrences. The result of the above
would have to be:
["Alice","Bob:1","Cindy:1","Bob:2","Bob:3","Dave","Cindy:2","Tim:1","Tim:2","Tim:3",...]
Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
1 - 100 of 108 matches
Mail list logo