public DSet Map(DFunction func) { DSet newSet = new DSet(new DObject[0]); foreach (var item in items) { newSet.Add(func.Call(new DObject[] { item.Value })); } return(newSet); }
public DString(DSet charArray) { value = new string(charArray.items.Select(x => DObject.AssertType <DChar>(x.Value).value).ToArray()); }