Vyxapedia

Element - c - Contains / First Truthy Item Under Function Application

Characters: c


Description

Check if one thing contains another / returns the first truthy item in a list after applying a function


Overloads

  • any-fun - first item of a where b(x) is truthy (shortcut for Fh)
  • any-any - b in a (does a contain b, membership, contains)

Examples

  • `abcdef` `a` c = 1
  • ⟨1|2|3⟩ 1 c = 1
  • 123 1 c = 1
  • 123 `1` c = 1
  • `123` 1 c = 1
  • 123 `` c = 1