duplicate
duplicate copied to clipboard
Reusable Invocations
Short Description:
Provide a way for reusing duplicate! invocation code for multiple invocations
Motivation:
If we want to reuse the same invocation in multiple calls to different duplicate!s:
some_invocations_code!{
ReUsableId
[SomeInvocations] [That are repeated]
}
#[duplicate_item(ReUsableId)]
{...}
#[duplicate_item(ReUsableId)]
{...}
Design
It should be possible to define some code that can be used as duplicate invocation repeatedly.
It should also be possible for an invocation to use some code from a different file.