Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 7ebd25ac536d248d499a3ce2acda963a > files > 4017

Macaulay2-1.3.1-8.fc15.i686.rpm

<?xml version="1.0" encoding="utf-8" ?>  <!-- for emacs: -*- coding: utf-8 -*- -->
<!-- Apache may like this line in the file .htaccess: AddCharset utf-8 .html -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"	 "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head><title>any(BasicList,BasicList,Function) -- whether any corresponding elements of a pair of lists satisfy a condition</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="_any_lp__Hash__Table_cm__Function_rp.html">next</a> | <a href="_any.html">previous</a> | <a href="_any_lp__Hash__Table_cm__Function_rp.html">forward</a> | <a href="_any.html">backward</a> | up | <a href="index.html">top</a> | <a href="master.html">index</a> | <a href="toc.html">toc</a> | <a href="http://www.math.uiuc.edu/Macaulay2/">Macaulay2 web site</a></div>

    </td>
  </tr>
</table>
<hr/>
<div><h1>any(BasicList,BasicList,Function) -- whether any corresponding elements of a pair of lists satisfy a condition</h1>
<div class="single"><h2>Synopsis</h2>
<ul><li><div class="list"><dl class="element"><dt class="heading">Usage: </dt><dd class="value"><div><tt>any(v,w,f)</tt></div>
</dd></dl>
</div>
</li>
<li><span>Function: <a href="_any.html" title="whether any elements satisfy a specified condition">any</a></span></li>
<li><div class="single">Inputs:<ul><li><span><tt>v</tt>, <span>a <a href="___Basic__List.html">basic list</a></span></span></li>
<li><span><tt>w</tt>, <span>a <a href="___Basic__List.html">basic list</a></span></span></li>
<li><span><tt>f</tt>, <span>a <a href="___Function.html">function</a></span>, a function of two variables that returns true or false</span></li>
</ul>
</div>
</li>
<li><div class="single">Outputs:<ul><li><span><span>a <a href="___Boolean.html">Boolean value</a></span>, <a href="_true.html" title="">true</a> if <tt>f</tt> returns true when applied to some pair <tt>(x,y)</tt> of corresponding elements of <tt>v</tt> and <tt>w</tt>, and <a href="_false.html" title="">false</a> otherwise</span></li>
</ul>
</div>
</li>
</ul>
</div>
<div class="single"><h2>Description</h2>
<div><table class="examples"><tr><td><pre>i1 : any((1,2,3,4),(2,3,4,5), (i,j) -> i>j)

o1 = false</pre>
</td></tr>
<tr><td><pre>i2 : any((1,2,5,4),(2,3,4,5), (i,j) -> i>j)

o2 = true</pre>
</td></tr>
<tr><td><pre>i3 : any((1,2,5,4),(2,3,4,5), x -> (print x; false))
(1, 2)
(2, 3)
(5, 4)
(4, 5)

o3 = false</pre>
</td></tr>
<tr><td><pre>i4 : any((1,2,5,4),(2,3,4,5), x -> (print x; true))
(1, 2)

o4 = true</pre>
</td></tr>
</table>
</div>
</div>
<div class="single"><h2>See also</h2>
<ul><li><span><a href="_scan.html" title="apply a function to each element">scan</a> -- apply a function to each element</span></li>
<li><span><a href="_apply.html" title="apply a function to each element">apply</a> -- apply a function to each element</span></li>
<li><span><a href="_select.html" title="select from a list, hash table, or string">select</a> -- select from a list, hash table, or string</span></li>
<li><span><a href="_any.html" title="whether any elements satisfy a specified condition">any</a> -- whether any elements satisfy a specified condition</span></li>
<li><span><a href="_member.html" title="test membership in a list or set">member</a> -- test membership in a list or set</span></li>
</ul>
</div>
</div>
</body>
</html>