結果 : state vs path-dependent functions