4,493
edits
No edit summary |
m (Text replacement - "<source" to "<syntaxhighlight") |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
== Example usage == | == Example usage == | ||
As with other workspaces, workspace < | As with other workspaces, workspace <syntaxhighlight lang=text inline>dfns</syntaxhighlight> can be copied into the current workspace using the [[Quad name|system function]] <syntaxhighlight lang=apl inline>⎕CY</syntaxhighlight>: | ||
< | <syntaxhighlight lang=apl> | ||
⎕CY'dfns' | ⎕CY'dfns' | ||
Line 11: | Line 11: | ||
1 cmpx '((1e6∘|2∘×)⍣871) 1' | 1 cmpx '((1e6∘|2∘×)⍣871) 1' | ||
0.0001302490234375 | 0.0001302490234375 | ||
</ | </syntaxhighlight> | ||
Copying in only one or more specific functions is done by adding a left [[argument]]: | Copying in only one or more specific functions is done by adding a left [[argument]]: | ||
< | <syntaxhighlight lang=apl> | ||
'dec' 'hex'⎕CY'dfns' | 'dec' 'hex'⎕CY'dfns' | ||
Line 20: | Line 20: | ||
dec '04d2' | dec '04d2' | ||
1234 | 1234 | ||
</ | </syntaxhighlight> | ||
It can also be used to import the entire workspace into a utility [[namespace]]: | It can also be used to import the entire workspace into a utility [[namespace]]: | ||
< | <syntaxhighlight lang=apl> | ||
{(⍎⍵⎕NS⍬).⎕CY ⍵}'dfns' | {(⍎⍵⎕NS⍬).⎕CY ⍵}'dfns' | ||
Line 34: | Line 34: | ||
19 20 21 22 23 24 25 | 19 20 21 22 23 24 25 | ||
26 27 28 29 30 31 | 26 27 28 29 30 31 | ||
</ | </syntaxhighlight> | ||
== Referrences == | == Referrences == |