haskellが他の言語と違うのはside effect freeだから!
と本に書いてあるのですが、他の言語でも出来そうな気がするのですが?
nibai :: Int ->Int
nibai n = 2*n

void nibai(int n){
value = 2*n;}