SHTK_LIST_CONTAINS(3)

πŸ“¦ version 1.7, in nixos 26.05, nixpkgs unstable

πŸ’… SHTK_LIST_CONTAINS(3) πŸ’…

okay so bestie, welcome to shtk_list_contains β€” it's a Library Functions Manual page and honestly? iconic. This is the shtk girlies' list-checking era and we're living for it. πŸŽ€


🌸 NAME 🌸

shtk_list_contains β€” literally checks if an item appears in a list, no cap πŸ”βœ¨

πŸ’– LIBRARY πŸ’–

shtk_import list

like, that's the import you need. that's the whole vibe. don't forget it 🫢

✨ SYNOPSIS ✨

shtk_list_contains item [list_value1 .. list_valueN]

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so here's the tea β˜• β€” shtk_list_contains goes searching for item inside the list you hand it, which is everything in list_value1 through list_valueN. it's giving "where's my bestie in this crowd" energy fr fr.

and listen, important detail, don't skip this part πŸ™ˆ β€” each list value has to be passed in as its own separate positional parameter. one value, one parameter. that's the whole rule, no bundling, no shortcuts, periodt. πŸ’…

πŸ”₯ RETURN VALUES πŸ”₯

  • shtk_list_contains returns 0 (true) if item appears in the list β€” slay, it's there ✨
  • and it returns 1 (false) if it does not appear β€” not found, bestie, it's giving 😭

🌈 SEE ALSO 🌈

go read those too, iykyk πŸ¦‹

⭐ HISTORY ⭐

shtk_list_contains first appeared in shtk 1.0 β€” a true main character debut, we love to see it πŸ‘‘


and that's the whole page, bestie πŸ’– this one's from Debian, dated November 7, 2014 β€” vintage but still ate, mwah 🫢✨

πŸ“¦ where this page comes from