跳轉至內容

Rebol 程式設計/as-pair

來自華夏公益教科書
AS-PAIR x y 

將 X 和 Y 值組合成一個對。

AS-PAIR 是一個函式值。

  • x -- (型別:數字)
  • y -- (型別:數字)

原始碼

[編輯 | 編輯原始碼]
as-pair: func [
    "Combine X and Y values into a pair." 
    x [number!] y [number!]
][
    add 1x0 * x 0x1 * y
]
華夏公益教科書