Top
Back: is_prime
Forward: subset_sum01
FastBack:
FastForward:
Up: crypto_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.12.2.42 find_index

Procedure from library crypto.lib (see crypto_lib).

Usage:
find_index(a, e)

Return:
Returns the list index of element e in list a. Returns 0 if e is not in a

Example:
 
LIB "crypto.lib";
list a = 1,5,20,6,37;
find_index(a,20);
==> 3
find_index(a,6);
==> 4
find_index(a,100);
==> 0


Top Back: is_prime Forward: subset_sum01 FastBack: FastForward: Up: crypto_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4.3.2, 2023, generated by texi2html.