Rexx - 雜湊值



此方法將字串的雜湊屬性作為十進位制數字返回。它還會更新字串的內部雜湊值。

語法

hash(string)

引數

  • 字串 − 需要生成雜湊值的字串值。

返回值

返回字串的雜湊屬性作為十進位制數,並更新字串的內部雜湊值。

示例

/* Main program */ 
options arexx_bifs 
say hash('hello')

執行上述程式後,將得到以下結果。

輸出

20
rexx_regina.htm
廣告
© . All rights reserved.