RosettaCodeData/Task/Higher-order-functions/TI-89-BASIC/higher-order-functions.basic

6 lines
118 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
Local map
Define map(f,l)=Func
Return seq(#f(l[i]),i,1,dim(l))
EndFunc
Disp map("sin", {0, π/6, π/4, π/3, π/2})