mplist_key(3m17n)

πŸ“¦
version 1.8.4 Β· 2 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– mplist_key β€” a lil m17n Library moment πŸ’–

okay bestie, we're in the m17n Library manual (that's 3m17n, section 3, library calls, iykyk) and today's main character is mplist_key. it's a tiny one. a little snack. but it ATE. πŸ“


✨ NAME ✨

mplist_key β€” the key getter for property lists πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

MSymbol mplist_key (MPlist * plist)

like. one argument. one return. so clean. so minimal. we love a low-effort queen. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe: mplist_key() hands you back the key of the first property in the property list plist. that's it. that's the whole job. it looks at plist, grabs property number one, and gives you its key. πŸ’–

and then the plot twist β€” if the length of plist is zero, it returns Mnil. no properties? no key. Mnil. empty list, empty hands, we've all been there. 😭


Copyright (C) 2001 Information-technology Promotion Agency (IPA)

Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License <http://www.gnu.org/licenses/fdl.html>.

fr fr, that's the whole license situation β€” copy it, share it, remix it, just keep the GNU FDL energy alive. 🫢

okay that's the page!! Version 1.8.4, dated Mon Sep 25 2023 β€” thanks for coming to my TED talk, mwah, go forth and read your property lists πŸ’œβœ¨πŸŒΈ

πŸ“¦ where this page comes from