Thanks for letting me know! I wasn't able to test it on earlier versions. In fact, the function "take" was introduced on Emacs 29.1.