github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

namin / spots

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 2
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

various code snippets in various languages — Read more

  cancel

http://spotless-spots.blogspot.com

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

typo fix 
olpc (author)
Wed Mar 18 16:31:04 -0700 2009
commit  fb5d7f36a7a5a302e3f2dd3086faeffa1763716f
tree    053d01820de7456e771a65062d11992ac007412e
parent  266a015ff090cea119e4356eae0cba32be6b02d1
spots / errorEstimation
name age
history
message
..
file README.markdown Loading commit data...
file errorEstimation.fsx
file errorEstimation.hs
file errorEstimation.scala
errorEstimation/README.markdown

Error Estimation

I translated the example Using F# Quotations for Error Estimation from Chapter 9 of Expert F# (Introducing Language-Oriented Programming) to Scala. I don't use anything as fancy as F# quotations. Instead, I simply create a new arithmetic type for estimates, and use implicit views to handily convert from the usual arithmetic types.

The example also translates nicely into Haskell by using the numeric type classes.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server