Dfns workspace

From APL Wiki
Jump to navigation Jump to search

dfns.dws is a workspace which is supplied together with Dyalog APL. Since the introduction of direct functions in 1996, and their inclusion in Dyalog APL version 8.1,[1] people have been contributing to the collection.

Late John Scholes was the editor of this workspace. He presented a talk about the contents of the workspace at Dyalog '09.[2]

Example usage

As with other workspaces, workspace dfns can be copied into the current workspace using the system function ⎕CY:


      ⍝ Example call: timing an expression using function `cmpx`
      1 cmpx '((1e6∘|2∘×)⍣871) 1'

Copying in only one or more specific functions is done by adding a left argument:

      'dec' 'hex'⎕CY'dfns'

      hex 1234
      dec '04d2'

It can also be used to import the entire workspace into a utility namespace:

      {(⎕NS).⎕CY }'dfns'

      ⍝ Example call: calendar function from the new namespace
      dfns.cal 2021 12
   December 2021    
Su Mo Tu We Th Fr Sa
          1  2  3  4
 5  6  7  8  9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31


  1. John Scholes. Direct Functions in Dyalog APL. Dyadic Vendor Forum at APL96.
  2. Dyalog '09 C03: Introduction to D-Functions (dfns) (Video 1 (124 mins), Video 2 (67 mins))

External links

  • dfns.dyalog.com – website generated based on the contents of this workspace.
APL development [edit]
Interface SessionTyping glyphs (on Linux) ∙ FontsText editors
Publications IntroductionsLearning resourcesSimple examplesAdvanced examplesMnemonicsStandardsA Dictionary of APLCase studiesDocumentation suitesBooksPapersVideosPeriodicalsTerminology (Chinese, German) ∙ Neural networksError trapping with Dyalog APL (in forms)
Sharing code Backwards compatibilityAPLcartAPLTreeAPL-CationDfns workspaceTatin
Vendors APL2000DyalogGNU APL community ∙ IBMIPSASTSC