See also...


Keywords

nonsense
The Hunting of the Snark
What I tell you three times is true
the Bellman's rule
Haskell
utter nonsense
juvenile books


Authorizations, license

Visible by: Everyone
Attribution

710 visits


nonsense.hs


nonsense.hs Sign-in to download this doc.
Not registered yet?

Screenshot with nonsense.hs
What I tell you three times is true

=== The Bellman's rule ===

001· · "Just the place for a Snark!" the Bellman cried,
002· · · · As he landed his crew with care;
003· · Supporting each man on the top of the tide
004· · · · By a finger entwined in his hair.

005· · "Just the place for a Snark! I have said it twice:
006· · · · That alone should encourage the crew.
007· · Just the place for a Snark! I have said it thrice:
008· · · · What I tell you three times is true."


=== Implementation of the rule ===

The little Haskell program checks whether entries in a list of statements occur three times (or more). Therefore the program is a useful tool to test the truth of statements.

Comments

Sign-in to write a comment.