-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
12 lines (9 loc) · 927 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
Welcome to 99 problems in Ruby!
These problems are based on the Haskell version of 99 problems, which can be found here: http://www.haskell.org/haskellwiki/99_Haskell_exercises. Actually, when a Lisp and Haskell example are shown, the api from the Lisp version is used. This is due to Haskell's homogeneous lists. Lisp and Ruby share heterogeneous lists, and thus the examples are a better fit for Ruby.
A few things to be aware of:
- I closely follow the api offered in the original problems, with the exception of boolean methods, which get a '?'.
- These were done for fun, I've included no bounds checking or error handling at all. I only wrote enough code to satisfy the original requirements of the problem.
- As a direct result of the above, the specs provided only prove the correctness of each function.
- These are not meant to be idiomatic Ruby.
- I'm not striving for efficiency. I'm just hacking around.
Enjoy!