Bill Allombert on Mon, 14 Jan 2008 13:39:08 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

closures for built-in GP functions


Hello PARI-dev,

I have committed a patch which allow to use built-in GP function as
closures:

? apply(sin,[1,2,3])
%1 = [0.84147098480789650665250232163029899962, 0.90929742682568169539601986591174484270, 0.14112000805986722210074480280811027985]
? select([1,2,3,4,5,6],isprime)
%2 = [2, 3, 5]

For backward compatibility this does not affect functions without
mandatory arguments.

Cheers,
Bill.