Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

SpanDeconstructors

SpanDeconstructors is a source package which allows you to use C# 7 deconstruction syntax to deconstruct spans into variables

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

SpanDeconstructors

SpanDeconstructors is a source package which allows you to use C# 7 deconstruction syntax to deconstruct span into variables:

pascal
Span<int> span = <...>;
var (a,b,_) = span;

Implementation notes

  • The decision has been made such that there are no safety checks on the deconstruction methods.

Installation

You can install from NuGet using following command:

pascal
> Install-Package SpanDeconstructors.Source