Denis Simon on Wed, 29 Jan 2025 22:29:52 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- To: pari-users <pari-users@pari.math.u-bordeaux.fr>
- Subject: select and vecsmall
- From: Denis Simon <denis.simon@unicaen.fr>
- Date: Wed, 29 Jan 2025 22:29:45 +0100 (CET)
- Delivery-date: Wed, 29 Jan 2025 22:29:52 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=unicaen.fr; s=mail; t=1738186185; bh=UH7ln0BDquV7CwJUKxSu5ERUXYByHxZjO4ZJZ0rl/W4=; h=Date:From:To:Subject:From; b=Ef3I8FnG6hdJ0BBLC0IgdeQo+FoK1+ex/INWD33r6z/19vAHOReLgx1eVYGm1lbA0 s8hCPBXF/SBiafnmm+lD8nVtMgNr8tlZ9gW3bPkYEG42XW5I81IGJtiqVvuO7SS2Mc 9I/0LCLj/W9RM/28FF97UtLdA88xQU7G43SGGHyA=
- Thread-index: mOSQcL/WZnK0/rhTEPYQwYignT8Zeg==
- Thread-topic: select and vecsmall
Hi,
The function select() doesn't seem to accept Vecsmall.
v=Vecsmall([1,2,3,4]);
select(i->i%2,v)
*** at top-level: select(i->i%2,v)
*** ^----------------
*** select: incorrect type in select (t_VECSMALL).
*** Break loop: type 'break' to go back to GP prompt
Is there any good reason ?
Denis SIMON.