Bill Allombert on Sat, 22 Jan 2022 14:18:23 +0100


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

Re: Addressable bits buffer, how?


On Sat, Jan 22, 2022 at 01:37:53PM +0100, Ruud H.G. van Tol wrote:
> 
> https://rosettacode.org/wiki/Pangram_checker#PARI.2FGP

You should use Vecsmall(string)

pangram(s)=
{
  my([a,z]=Vecsmall("az"));
  #vecsort([x|x<-Vecsmall(s),x>=a && x<=z],,8)==26
}

Cheers,
Bill.