Dfn: Difference between revisions

Jump to navigation Jump to search
308 bytes added ,  08:34, 2 August 2020
no edit summary
m (Text replacement - "http://help.dyalog.com" to "https://help.dyalog.com")
No edit summary
Line 6: Line 6:


Wikipedia includes a thorough treatment of [[Wikipedia:dfns|dfns]].
Wikipedia includes a thorough treatment of [[Wikipedia:dfns|dfns]].
== Examples ==
<source lang=apl>
      {⍵*0.5} 16        ⍝ square root
4
      3 {⍵*÷⍺} 27      ⍝ ⍺th root
3
      ⍝ Multiline dfn with optional left parameter
      root←{
          ⍺←2          ⍝ square root by default
          ⍵*÷⍺          ⍝ result
      }
</source>
== External links ==
== External links ==
* [[wikipedia:Direct function|Direct function]]
* [[wikipedia:Direct function|Direct function]]
=== Tutorials ===
=== Tutorials ===
* APL Cultivation: [https://chat.stackexchange.com/rooms/52405/conversation/lesson-2-diving-into-functions-in-apl Diving Into Functions in APL]
* APL Cultivation: [https://chat.stackexchange.com/rooms/52405/conversation/lesson-2-diving-into-functions-in-apl Diving Into Functions in APL]
* Mastering Dyalog: [https://www.dyalog.com/uploads/documents/MasteringDyalogAPL.pdf#page=174 page 174]
* Mastering Dyalog: [https://www.dyalog.com/uploads/documents/MasteringDyalogAPL.pdf#page=174 page 174]
=== Documentation ===
=== Documentation ===
* [https://help.dyalog.com/latest/#Language/Defined%20Functions%20and%20Operators/DynamicFunctions/Dynamic%20Functions%20and%20Operators.htm Dyalog]
* [https://help.dyalog.com/latest/#Language/Defined%20Functions%20and%20Operators/DynamicFunctions/Dynamic%20Functions%20and%20Operators.htm Dyalog]
trusted
69

edits

Navigation menu