/** * This method evaluates whether the specified object is contained within the string. * * @access public * @static * @param IString\Type $xs the left operand * @param IChar\Type $y the object to find * @return IBool\Type whether the specified object is * contained within the string */ public static function contains(IString\Type $xs, IChar\Type $y) : IBool\Type { return IString\Module::any($xs, function (IChar\Type $x, IInt32\Type $i) use($y) { return IChar\Module::eq($x, $y); }); }