function-reference Questions
1
As explained in the docs, you can reference an existing function by prepending the & sigil:
&say # reference to the `say` function
&infix:<+> # reference to the infix `+` operator...
Lorikeet asked 8/7, 2023 at 13:18
1
Solved
Is it possible to get a function reference to a function which has default parameters, specified as the parameterless call?
InputStream.buffered() is an extension method which transforms an InputS...
Microcurie asked 23/9, 2019 at 21:14
1
Solved
In Java we have the Class::new syntax for constructor references. I know, there are callable references for methods, but how about constructors? A typical use case for me would be factories.
Voleta asked 20/10, 2014 at 18:51
1
© 2022 - 2024 — McMap. All rights reserved.