scan

scan(v,f) -- applies the function f to each element of the list v. The function values are discarded.

     i1 = scan({a,4,"George",2^100}, print)
     
     a
     4
     "George"
     1267650600228229401496703205376
scan(n,f) -- equivalent to scan(0 .. n-1, f), for an integer n.
     i2 = scan(3,print)
     
     0
     1
     2

See also select, any, all, and member.

Go to main index.

Go to concepts index.