Dfns workspace: Difference between revisions

Jump to navigation Jump to search
45 bytes added ,  22:13, 10 September 2022
m
Text replacement - "<source" to "<syntaxhighlight"
m (Text replacement - "</source>" to "</syntaxhighlight>")
m (Text replacement - "<source" to "<syntaxhighlight")
 
Line 4: Line 4:


== Example usage ==
== Example usage ==
As with other workspaces, workspace <source lang=text inline>dfns</syntaxhighlight> can be copied into the current workspace using the [[Quad name|system function]] <source lang=apl inline>⎕CY</syntaxhighlight>:
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>:
<source lang=apl>
<syntaxhighlight lang=apl>
       ⎕CY'dfns'
       ⎕CY'dfns'


Line 13: Line 13:
</syntaxhighlight>
</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]]:
<source lang=apl>
<syntaxhighlight lang=apl>
       'dec' 'hex'⎕CY'dfns'
       'dec' 'hex'⎕CY'dfns'


Line 22: Line 22:
</syntaxhighlight>
</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]]:
<source lang=apl>
<syntaxhighlight lang=apl>
       {(⍎⍵⎕NS⍬).⎕CY ⍵}'dfns'
       {(⍎⍵⎕NS⍬).⎕CY ⍵}'dfns'


Navigation menu