Search a list: Difference between revisions

m
(add BQN)
Line 505:
=={{header|BQN}}==
 
Generally, <code>⊐</code> (Index Of) is used to findexfind the indices of the right argument array's elements in the left argument. It returns the length of the left argument <code>𝕨</code> if the argument is not present.
 
The given <code>IndexOf</code> function is written to satisfy question requirements (throwing exceptions), and it is not recommended for use in production.
 
<lang bqn>list ← ⟨"Zig", "Zag", "Wally", "Ronald", "Bush", "Krusty", "Charlie", "Bush", "Boz", "Zag"⟩
99

edits