PolyLink
A library to allow manipulation of geometry from within Mathematica
All Classes Namespaces Files Functions Variables Properties
NetLinkExtensions.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Threading.Tasks;
6 using Wolfram.NETLink;
7 
8 namespace PolyLink
9 {
10  public static class NetLinkExtensions
11  {
12  public static IEnumerable<Expr> Parts(this Expr e)
13  {
14  //Loop preparation
15  int count = e.Length;
16 
17  return Enumerable.Range(1, count).Select(i => e[i]);
18  }
19  }
20 }