Prototype: Difference between revisions

Jump to navigation Jump to search
4 bytes added ,  13:28, 30 October 2019
Miraheze>Adám Brudzewsky
m (Text replacement - "</code>" to "</source>")
Miraheze>Marshall
Line 35: Line 35:
{{Works in|[[Dyalog APL]]}}
{{Works in|[[Dyalog APL]]}}


The prototype of an array may be nested. Here, we inspect the prototype of an array containing both character and numeric data. In the prototype, all characters are converted to spaces and all numbers to zeros. Thus the prototype retains type and structure information but not specific values.
The prototype of an array may be [[nested]]. Here, we inspect the prototype of an array containing both character and numeric data. In the prototype, all characters are converted to spaces and all numbers to zeros. Thus the prototype retains type and structure information but not specific values.
<source lang=apl>
<source lang=apl>
       ⊢x ← ⊂'de'(3 4 5)  ⍝ A complicated scalar array
       ⊢x ← ⊂'de'(3 4 5)  ⍝ A complicated scalar array
Anonymous user

Navigation menu