With direct access to all of .NETs libraries you can basically use it as just another .NET language like C# or F#. But since most of those libraries were not created with dataflow in mind, we’ve curated a library for you that is much more comfortable to use and is the default referenced library when creating a new VL document. The VL.CoreLib is built on top of .NET Standard.
In general we try to do as little renaming as possible when importing data types. But for collections we took the liberty to do the following renamings from the original ones:
All immutable .NET collections drop the Immutable pre-fix since it’s the default in VL
All mutable .NET collections get a Mutable pre-fix
IEnumerable is called Sequence
If you’re familiar with programming C#, you’ll mostly find yourself around with VL. Here are a few things things that will be new to you though:
The main collection type in VL is called Spread and its individual entries are called Slices. The Spread is an immutable collection with one special feature: If you’re calling
GetSlice(Index) on it, with an index that exceeds its count, instead of an error you get the slice with the index taken modulo the count.
E.g. if you have a spread with 5 slice and you’re asking for slice 7, you get slice 2.