Fill: Difference between revisions

From The K Language Wiki
Content added Content deleted
("Add all appropriate categories to each verb")
("Better category ordering, add redirects to categories, fix pseudo-adverb categories")
 
Line 18: Line 18:
</pre>
</pre>


[[Category:Operator verbs]]
[[Category:Verbs]]
[[Category:Verbs]]
[[Category:Operator verbs]]
[[Category:Primitives]]
[[Category:Primitives]]

Latest revision as of 06:40, 9 July 2022

Fill
a^y

The fill primitive is used to fill in "gaps" present in an array using a single atom a.

You can use any null value to indicate a gap in the array.

 1^0 0N 2 3 0N
0 1 2 3 1

 "b"^," "
,"b"

 "A"^(1;0N;" ")
(1
 "A"
 "A")