next | previous | forward | backward | up | top | index | toc | home
Macaulay2 > The Macaulay2 language > lists and sequences > scan(BasicList,Function)

scan(BasicList,Function) -- apply a function to each element of a list

Synopsis

Description

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