Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/utils/doc/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 11.8.2025 mit Größe 5 kB image not shown  
/table>

<h4>2.1 <span class="Heading">Printing selected items</span></h4>

<p>The functions described here print lists or objects with an iterator with one item per line, either the whole list/iterator or certain subsets:</p>


<ul>
<li><p>by giving a list of positions of items to be printed, or</p>

</li>
<li><p<p>Alternatively  twoparameters the second a  <code="code>ofpositive integers onlytheitems at codeclass=code>L/code areprinted

</li>
</ul>
<p><a class>><span=">L :java.lang.StringIndexOutOfBoundsException: Range [71, 67) out of bounds for length 104

<h5>2.1-1 PrintSelection</h5>

<div2
d class" ="0%>tr=">codeclass=func>&82; PrintSelection(var ="Argvar varArg,varArg><varvarArg<var<> =">&bsp; )td<>
<p>This function, given three(or) parameters, calls <code="code"PrintSelectionFromListcode  <codeclass">rintSelectionFromIterator<> theemfirst/em> specified, theitemat tep/>.The fourth parameterisessential when objectbeingprinted isinfinite



<p>Alternatively, given two parameters, with the second parameter a list <code class="code">L</code> of positive integers :2


<div class:java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8

<span class="GAPprompt">gap></span> <span class="GAPinput">L := List( [1..20], n -> n^5 );;</<span class="GAPprompt">gap></span> <span class="GAPinput">PrintSelection( s5, [30,31,100,101] );</s2
<span class="GAPprompt">gap></span> <span class1: ()
18 :<spanclass="GAPprompt">>> < class"GAPinput">rintSelection ,1 4 ;/>
19 : 2476099
2  3000
<span class="GAPprompt">gap></span> <span class="GAPinput">PrintSelection( L, 2, 9 );       </span>
2 : 32
11 : 161051
20 : 32</re</iv
<span
2 : 32
5 : 3125
8 : 3268
11java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<( ;<span
<span class="GAPprompt">gap></span> <span class="GAPinput">PrintSelection( s5, [30,31,100,101] );</span>
3 : (,)34
31 : (1,5,/tml
100 : (1,4,3)
101 : (1,4)(3,5)
<span class="GAPprompt">gap></span> <span class="GAPinput">PrintSelection( s5, 1, 30 );</span>
1 : ()
31 : (1,5,2)
61 : (1,2,3)
91 : (1,3,5,2,4)
<span class="GAPprompt">gap></span> <span class="GAPinput">PrintSelection( s5, 9, 11, 43 );</span>
9 : (2,5,3)
20 : (2,4)
31 : (1,5,2)
42 : (1,5,2,3,4)

</pre></div>


<div class="chlinkprevnextbot"> <a href="chap0_mj.html">[Top of Book]</a>   <a href="chap0_mj.html#contents">[Contents]</a>    <a href="chap1_mj.html">[Previous Chapter]</a>    <a href="chap3_mj.html">[Next Chapter]</a>   </div>


<div class="chlinkbot"><span class="chlink1">Goto Chapter: </span><a href="chap0_mj.html">Top</a>  <a href="chap1_mj.html">1</a>  <a href="chap2_mj.html">2</a>  <a href="chap3_mj.html">3</a>  <a href="chap4_mj.html">4</a>  <a href="chap5_mj.html">5</a>  <a href="chap6_mj.html">6</a>  <a href="chap7_mj.html">7</a>  <a href="chap8_mj.html">8</a>  <a href="chap9_mj.html">9</a>  <a href="chap10_mj.html">10</a>  <a href="chap11_mj.html">11</a>  <a href="chap12_mj.html">12</a>  <a href="chapBib_mj.html">Bib</a>  <a href="chapInd_mj.html">Ind</a>  </div>

<hr />
<p class="foot">generated by <a href="https://www.math.rwth-aachen.de/~Frank.Luebeck/GAPDoc">GAPDoc2HTML</a></p>
</body>
</html>

99%


¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.4Bemerkung:  ¤

*Bot Zugriff

Quellcode-Bibliothek chap2_mj.html   Sprache: HTML

 
 products/Sources/formale Sprachen/GAP/pkg/utils/doc/chap2_mj.html


<?xml 

htmlPUBLICXHTML"
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<script type="text/javascript"
  src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<title>GAP (Utils) - Chapter 2: Printing Lists and Iterators</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
< name ="" />
<link rel="stylesheet" type="text/css" href="manual.css" />
< srcjs"/javascript"<script
<script type="text/javascript">overwriteStyle();</script>
<headjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
<body class="chap2"  onload="jscontent()">


<div class="chlinktop"><spanclass< classtocline<class<< ="chap2_mj.html#X7F6817927F86240F>.1eadingselected/><a

<div class="chlinkprevnexttop"> <a href="chap0_mj.html">[Top <span

<div>
<p><a id
< class<href.X83686EE47E4D4F66 ="" Lists</></>
<div class="ContSect"><span class="tocline"><span classp>a ="X7F6817927F86240F" name"
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<="
<span class="ContSS"><br /><span class="nocss">&
</div>java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
</div>

<java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

<p><a id="X7F6817927F86240F" div="">< class="0"<><td>code ="unc>̻PrintSelection obj, first, step[, last] )
( function )




Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung ist noch experimentell.