Lasso Soft Inc. > Home

[ capture->invoke ]

Method

Invokes the curent capture. A capture can also be invoked with ()

  • Syntax
{ }->invoke

{ }()
Examples
  • Beginner
  • Intermediate
  • Advanced

Invoking a simple capture which returns a string

Code

{ return 'hello' }->invoke

Result

hello

Invoking a capture with params using the parens technique.

Code

{ return 'hello'+#1 }(' world')

Result

{ return 'hello'+#1 }(' world')

Invoking a simple capture which returns a string using the parens technique.

Code

{ return 'hello' }()

Result

hello

Invoking a capture with params.

Code

{ return 'hello'+#1 }->invoke(' world')

Result

hello world

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft