NestWhile::nwargs
NestWhileList::nwargs
An error occurs in this example because the fourth argument in NestWhileList does not match any of the expected forms.
NestWhileList[(# + 1)&, 3, 5, (# < 10)&]This shows valid arguments in NestWhileList.
NestWhileList[(# + 1)&, 3, (# < 10)&, 5]