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

allKeysForValue

  • Function
    • new in 1.61

    • Returns a list of all of the keys (property names) in a propertyList that have a particular value, in no particular order. If the property list does not contain that value an empty list is returned.

    • Example:

      set scores to {dan:21, betty:12, carl:13, ann:21, sue:18}
      put allKeysForValue(scores, 21) --> [ann,dan]
      put scores.allKeysForValue(12) --> [betty]
    • Related: keyForValue