RectangularRepeatingElement[elem]
インタープリタ,APIあるいはフォーム指定におけるタイプ spec の,要素の矩形配列を表す.
RectangularRepeatingElement[elem,{maxrows,maxcolumns}]
最大サイズが maxrows×maxcolums の,要素の矩形配列を表す.
RectangularRepeatingElement[elem,{{minrows,maxrows},{mincolumns,maxcolumns}}]
大きさが minrows×mincolumns から maxrows×maxcolums までの,要素の矩形配列を表す.
RectangularRepeatingElement
RectangularRepeatingElement[elem]
インタープリタ,APIあるいはフォーム指定におけるタイプ spec の,要素の矩形配列を表す.
RectangularRepeatingElement[elem,{maxrows,maxcolumns}]
最大サイズが maxrows×maxcolums の,要素の矩形配列を表す.
RectangularRepeatingElement[elem,{{minrows,maxrows},{mincolumns,maxcolumns}}]
大きさが minrows×mincolumns から maxrows×maxcolums までの,要素の矩形配列を表す.
詳細
- Interpreterのコンテキストでは,spec はInterpreterに使われる任意の指定(CompoundElementやRepeatingElementを含む)でよい.
- FormObjectおよびFormFunctionのコンテキストでは,spec はフォームに使われる任意の指定(完全連想を含む)でよい.
例題
すべて開く すべて閉じる例 (3)
RectangularRepeatingElementを使ってデータの行列を解釈する:
Interpreter[RectangularRepeatingElement["Number"]][{{"1", "2.5", "3.2"}, {"11", "15", "12.2"}}]RectangularRepeatingElementは,矩形ではないデータはうまく処理できない:
Interpreter[RectangularRepeatingElement["Number"]][{{"1", "2.5", "3.2"}, {"15", "12.2"}}]APIFunctionで使って複雑なデータをまとめる:
api = CloudDeploy @ APIFunction[
"data" -> RectangularRepeatingElement["Integer"],
NullSpace[#data]&,
AllowedCloudParameterExtensions -> {"json"}
]URLExecute[api, {"data__json" -> "[[1, 2], [2, 4]]"}]スコープ (2)
Interpreter[RectangularRepeatingElement["Integer", {2, 1}]][{{"1", "2", "3"}}]Interpreter[RectangularRepeatingElement["Integer", {2, 1}]][{{"1"}, {"2"}}]Interpreter[RectangularRepeatingElement["Integer", {{2, 100}, {2, 100}}]][{{"1", "2", "3"}}]Interpreter[RectangularRepeatingElement["Integer", {{2, 100}, {2, 100}}]][{{"1", "2"}, {"3", "4"}}]特性と関係 (3)
RectangularRepeatingElementをインタープリタ指定と一緒に使うことができる:
Interpreter[RectangularRepeatingElement["Integer" | "Country"]][{{"1", "italy"}, {"armenia", "5"}}]RepeatingElementを含める:
Interpreter[RectangularRepeatingElement[RepeatingElement["Number"]]][{{{"1", "2", "3"}, {"1"}}, {{"5", "6"}, {"7"}}}]さらにCompoundElementを含める:
Interpreter[RectangularRepeatingElement[CompoundElement[<|"country" -> "Country", "city" -> "City"|>]]][{{<|"country" -> "angola", "city" -> "lahore"|>, <|"city" -> "bangkok", "country" -> "canada"|>}}]考えられる問題 (1)
FormFunctionやFormPageのような構造はRectangularRepeatingElementのための特別なインターフェースは表示しない:
CloudDeploy[
FormFunction["data" -> RectangularRepeatingElement["Integer"],
NullSpace[#data]&
]]関連するガイド
テキスト
Wolfram Research (2017), RectangularRepeatingElement, Wolfram言語関数, https://reference.wolfram.com/language/ref/RectangularRepeatingElement.html.
CMS
Wolfram Language. 2017. "RectangularRepeatingElement." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RectangularRepeatingElement.html.
APA
Wolfram Language. (2017). RectangularRepeatingElement. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RectangularRepeatingElement.html
BibTeX
@misc{reference.wolfram_2026_rectangularrepeatingelement, author="Wolfram Research", title="{RectangularRepeatingElement}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/RectangularRepeatingElement.html}", note=[Accessed: 03-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_rectangularrepeatingelement, organization={Wolfram Research}, title={RectangularRepeatingElement}, year={2017}, url={https://reference.wolfram.com/language/ref/RectangularRepeatingElement.html}, note=[Accessed: 03-November-2026]}