What I want to do is to evaluate a function as shown below:
LessQ[n_] := LessQ[n] = l[n] < 61
In some cases, when I am sure that on a list the LessQ[] is True, I want to
LessQ[#]& = True/@{1,2,3,4}
but this doesn’t work. So, instead of using a For[] loop, is there any other method?
LessQover the list, comparing each element, or do you have some defined way of saying that one list is "less than" another? What isl[n]? – Corey Kelly Jun 08 '13 at 02:43Scan[]:Scan[(LessQ[#] = True) &, {1, 2, 3, 4}]. Note the parenthesization and the placement of the function operator (&). – J. M.'s missing motivation Jun 08 '13 at 02:44