>>893
こういうので我慢してはどうだろうか?

func printDiffernce() {
struct Prev { static var value: Int? }

let curValue = getNextValue()
if let prevValue = Prev.value {
print("difference = ¥(curValue - prevValue)")
Prev.value = curValue
} else {
Prev.value = curValue
}
}

自分ならインスタンス変数使うけど