Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. preprocess :: Array -> Array
  2. preprocess array
  3.     | enginetunings array > 15 = fixarray array
  4.     | otherwise = array
  5.     where   enginetunings passedarray = read $ passedarray ! 26
  6.         fixarray passedarray = passedarray // [(7, fixedspeed),(8,fixedaccel),(26,fixedengine)]
  7.         fixedspeed = show $ (read $ array ! 7) * $ 1 + ((read $ array ! 26) - 15) * 0.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement