Rand Stats

Slang::Lambda

zef:lizmat

Actions Status Actions Status Actions Status

NAME

Slang::Lambda - allow λ as a pointy block starter

SYNOPSIS

use Slang::Lambda;

say (1,2,3).map: λ $x { $x+1 }  # (2 3 4)

DESCRIPTION

Slang::Lambda modifies the Raku grammar to make it possible to use simple the λ (lambda) symbol as the starter symbol of a pointy block (which is usually ->).

INSPIRATION

A question on /r/rakulang.

AUTHOR

Elizabeth Mattijsen liz@raku.rocks

Source can be located at: https://github.com/lizmat/Slang-Lambda . Comments and Pull Requests are welcome.

If you like this module, or what I’m doing more generally, committing to a small sponsorship would mean a great deal to me!

COPYRIGHT AND LICENSE

Copyright 2025 Elizabeth Mattijsen

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.