mlandistest / code

2 stars 0 forks source link

Add modulo operator [sf#21] #33

Open mlandis opened 10 years ago

mlandis commented 10 years ago

Reported by hoehna on 2013-11-11 10:08 UTC We had problems writing compact code to find odd and even numbers. The seq function is not present. The mod operator ('%') is not present. We could not rely on integer division leading to integer results, that is i / 2 == i would always be false even if we set i to an even integer. We ended up writing more code than we should have needed to for generating these vectors. Should we consider integer division giving integer result? Should we consider adding the modulus operator? Probably yes on both points.

mlandis commented 10 years ago

Updated by hoehna on 2014-02-19 07:50 UTC