by ericmoritz · 14y ago · 0 comments
What I would give for a book at that time that would help me translate the following:
merge (X, Y ) : payload Z
let ∀i ∈ [0, n − 1] : Z.P[i] = max(X.P[i], Y.P[i])
Into def merge(X, Y):
Z = ... new object ...
for i in range(len(X.P) - 1):
Z.P[i] = max(X.P[i], Y.P[i])
return Z
I eventually figured it out but it was a bit rough trying to figure out what all the symbols meant.For more rudimentary papers, any undergrad course on discrete mathematics should get you started. I personally was forced to read http://www.amazon.com/Discrete-Mathematics-Applications-Susa... - and it's pretty decent.
+1 for the book recommendation - I also have a copy of that.
http://www.amazon.com/Haskell-Logic-Maths-Programming-Comput...