Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Php
in_array($x, $list, true);

in_array returns true if value exists in array $list

Last argument should be set to true. Otherwise unexpected behavior is very likely to happen, for details see php manual.
with Ada.Containers.Vectors;
Result := List.Contains (X);

New implementation...