lis_array_swap(3f)

πŸ“¦ version 2.1.11, in fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

πŸ’« lis_array_swap β€” bestie, we're swapping πŸ’«

okay so this is lis_array_swap(3f), a lil function from the Lis Library Functions family, and honestly? she's simple, she's iconic, she does exactly one thing and she does it well. no notes. πŸŽ€


✨ NAME ✨

lis_array_swap β€” swap the values of the vector elements πŸ”„

like... that's it. that's the whole job. the elements trade places. main character energy fr fr.


🌸 SYNOPSIS 🌸

subroutine lis_array_swap(LIS_INTEGER n, LIS_SCALAR x(), LIS_SCALAR y(),
LIS_INTEGER ierr);

look at her. three inputs, one output code, zero drama. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

Swap the values of the vector elements.

no cap, that's the entire description. you hand her two arrays, she makes them trade lives. x becomes what y was, y becomes what x was, and everybody moves on with their day. it's giving identity crisis but make it mutual. πŸ’…


πŸ’– INPUT πŸ’–

  • n β€” the size of the vectors. she needs to know how many elements we're shuffling around, bestie. no guessing games. πŸ”’
  • x, y β€” the source arrays. these are the two cuties walking into the swap. πŸ“

πŸ‘‘ OUTPUT πŸ‘‘

  • x, y β€” the destination arrays. same two girls, brand new values. the swap has been served. ✨

πŸ”₯ SEE ALSO πŸ”₯


lowkey reminder: ierr is sitting right there in the signature at the end, so keep an eye on her, she's the one who'll tell you how it went. πŸ’€

and that's the whole page, bestie!! 🌈 this lil icon was brought to you by Lis Library Functions, dated 3 Dec 2014, and the man page herself is lis_array_swap(3f). go forth and swap responsibly. mwah. πŸ’œπŸ§šπŸŒΈ

πŸ“¦ where this page comes from