แนวคิดกระบวนทัศน์การเขียนโปรแกรม
Eleanor Thomas
Senior Data Analytics Engineer

Pure function
def pure_sum(x, y):
output = x + y
return output
ไม่ใช่ pure function
def not_pure_sum(x, y):
output = x + y
print(output)
return output

แนวคิดกระบวนทัศน์การเขียนโปรแกรม