StringPartition["string",n]
string を重なり合ない長さ n の部分文字列に区切る.
StringPartition["string",n,d]
オフセット d の部分文字列を生成する.


StringPartition
StringPartition["string",n]
string を重なり合ない長さ n の部分文字列に区切る.
StringPartition["string",n,d]
オフセット d の部分文字列を生成する.
詳細

- StringPartition[string,n,d]によって生成される部分文字列は,すべて長さ n である.このため,string の終端部分の要素のいくつかは,どの部分文字列にも出現しないことがある.
- StringPartition[string,UpTo[n]]は,長さ n の部分リストに分割する.最後の部分リストはそれより短くてもよしとする.
- StringPartition[string,n,1]で生成された部分文字列には,string の全要素が出現する.
- StringPartition[string,n,d]で d が n より大きいときは,string の中間の要素が飛ばされる.
- StringPartition[BioSequence["type","seq"],n,…]は,文字列"seq"に操作を適用し,BioSequenceの結果のリストを返す.
テキスト
Wolfram Research (2015), StringPartition, Wolfram言語関数, https://reference.wolfram.com/language/ref/StringPartition.html (2020年に更新).
CMS
Wolfram Language. 2015. "StringPartition." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/StringPartition.html.
APA
Wolfram Language. (2015). StringPartition. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/StringPartition.html
BibTeX
@misc{reference.wolfram_2025_stringpartition, author="Wolfram Research", title="{StringPartition}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/StringPartition.html}", note=[Accessed: 18-September-2025]}
BibLaTeX
@online{reference.wolfram_2025_stringpartition, organization={Wolfram Research}, title={StringPartition}, year={2020}, url={https://reference.wolfram.com/language/ref/StringPartition.html}, note=[Accessed: 18-September-2025]}