Bill Allombert on Mon, 14 Oct 2024 11:30:54 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: question on the apply function, when the return values > 1 |
On Mon, Oct 14, 2024 at 10:59:55AM +0200, Loïc Grenié wrote: > { > concat( > apply(x-> > apply(y-> > [130*x,y], > ellordinate(e, 130*x) > ), > L > ) > ) > } > > (You can also use 130*L and change both the 130*x in x). There is shorter alternative without apply and concat. [[x,y]|x<-130*L;y<-ellordinate(e, x)] (beware the semi-colon in the middle). Cheers, Bill.