Vyxapedia

Element - - Find

Characters:


Description

Find a value in another


Overloads

  • any-any - a.find(b) (indexing, -1 if not found)
  • any-fun - truthy indices of mapping b over a

Examples

  • ⟨1|2|3⟩ 2 ḟ = 1
  • 123 2 ḟ = 1
  • 123 `2` ḟ = 1
  • `123` 2 ḟ = 1
  • 123 0 ḟ = -1
  • `hello` `l` ḟ = 2
  • ⟨⟨1⟩|⟨2⟩|⟨3|4⟩⟩ ⟨3|4⟩ ḟ = 2