The OpenD Programming Language

SeriesMap

Convinient alias for 1D Contiguous Series.

import mir.series;
@fmamath
alias SeriesMap(K, V) = mir_series!(K*, V*)

Examples

import std.traits;
import mir.series;

static assert (is(SeriesMap!(string, double) == Series!(string*, double*)));

/// LHS, RHS
static assert (isAssignable!(SeriesMap!(string, double), SeriesMap!(string, double)));
static assert (isAssignable!(SeriesMap!(string, double), typeof(null)));

static assert (isAssignable!(SeriesMap!(const string, double), SeriesMap!(string, double)));
static assert (isAssignable!(SeriesMap!(string, const double), SeriesMap!(string, double)));
static assert (isAssignable!(SeriesMap!(const string, const double), SeriesMap!(string, double)));

static assert (isAssignable!(SeriesMap!(immutable string, double), SeriesMap!(immutable string, double)));
static assert (isAssignable!(SeriesMap!(immutable string, const double), SeriesMap!(immutable string, double)));
static assert (isAssignable!(SeriesMap!(const string, const double), SeriesMap!(immutable string, double)));
static assert (isAssignable!(SeriesMap!(string, immutable double), SeriesMap!(string, immutable double)));
static assert (isAssignable!(SeriesMap!(const string, immutable double), SeriesMap!(string, immutable double)));
static assert (isAssignable!(SeriesMap!(const string, const double), SeriesMap!(string, immutable double)));
// etc

Meta