Dot: Difference between revisions

From The K Language Wiki
Content added Content deleted
(add dot apply page)
 
m (Lowercase title)
Line 1: Line 1:
{{lowercase title}}
{{primitive|f.y}}
{{primitive|f.y}}


'''Dot''' or '''dot-apply''' is used to apply a list of arguments to a function.
'''dot''' or '''dot-apply''' is used to apply a list of arguments to a function.


If all required arguments are not given, dot returns a partially applied function.
If all required arguments are not given, dot returns a partially applied function.

Revision as of 21:31, 8 July 2022


Dot
f.y

dot or dot-apply is used to apply a list of arguments to a function.

If all required arguments are not given, dot returns a partially applied function.

 {x+y}.2 3
5

 {x+y}.,2
{x+y}[2]