メインコンテンツまでスキップ
バージョン:25.2

least

  • operator
  • is at least
  • is at least as much as
  • is at least as late as
  • new in 1.40
  • but at least (new in 1.67)
  • pattern quantifier — at least count elements
    • new in 1.81
  • every expression — at least one
    • new in 2.04
    • An every expressions is similar to an each expressions but is used to test a set of values at once to see if they meet a certain criterion. The four variations are:

    • every — to determine if a test is true for all values

    • not every — to determine if a test is not true for all values

    • at least one — to determine if a test is true for at list one value

    • not one of (or none of) — to determine if a test is false for all values

    These expressions can be applied to all, or a selection of, items in a list or text chunks in a string (lines, words, items, or characters). To apply the test to a selected set of values rather than all values, a where, which, or whose clause enclosed in can be used to specify which values to include.

         set numList to [1,3,7,12,43,99]
put every item of numList is a number —> True
put not every item of numList is divisible by 3 —> True
put at least one item in numList is divisible by 3 —> True
put at least one item in numList is 77 —> False
put not one item in numList is less than 0 —> True
put none of the items in numList is equal to 500 —> True