a simple command I've missed

26 views
Skip to first unread message

David Eisenbud

unread,
Mar 25, 2024, 10:11:39 AMMar 25
to maca...@googlegroups.com
I often have a list L of Booleans and want to test whether they are all true. Writing
all (L, t -> t) seems clumsy. Why not jiust all L ? The following trivial overload makes this possible.
Should be in the core?

all BasicList := L -> all(L, t ->t)
--
David Eisenbud
Professor of Mathematics
University of California Berkeley

Daniel R. Grayson

unread,
Mar 26, 2024, 12:53:55 PMMar 26
to Macaulay2
Good idea!

Daniel R. Grayson

unread,
Mar 26, 2024, 12:54:44 PMMar 26
to Macaulay2
But, replace BasicList by List.

On Monday, March 25, 2024 at 7:11:39 AM UTC-7 d...@berkeley.edu wrote:
Reply all
Reply to author
Forward
0 new messages