Movatterモバイル変換


[0]ホーム

URL:


D Logo
Menu
Search

Library Reference

version 2.112.0

overview

Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.Requires a signed-in GitHub account. This works well for small changes.If you'd like to make larger changes you may want to consider usinga local clone.

core.internal.array.operations

This module contains support array (vector) operations
License:
Distributed under theBoost Software License 1.0. (See accompanying file LICENSE)

Sourcecore/internal/array/operations.d

@trusted T[]arrayOp(T : T[], Args...)(T[]res, Filter!(isType, Args)args);
Perform array (vector) operations and store the result inres. Operand types and operations are passed as template arguments in Reverse Polish Notation (RPN).
Operands can be slices or scalar types. The element types of all slices and all scalar types must be implicitly convertible toT.
Operations are encoded as strings, e.g."+","%","*=". Unary operations are prefixed with "u", e.g."u-","u~". Only the last operation can and must be an assignment ("=") or op-assignment ("op=").
All slice operands must have the same length as the result slice.
Parameters:
Argsoperand types and operations in RPN
T[]resthe slice in which to store the results
Filter!(isType, Args)argsoperand values
Returns:
the slice containing the result
Copyright © 1999-2026 by theD Language Foundation | Page generated byDdoc on Fri Feb 20 12:44:11 2026

[8]ページ先頭

©2009-2026 Movatter.jp