emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pack/unpack perl like functions ?


From: Kevin Rodgers
Subject: Re: pack/unpack perl like functions ?
Date: Mon, 18 Dec 2006 16:44:07 -0700
User-agent: Thunderbird 1.5.0.8 (Windows/20061025)

Xavier Maillard wrote:
Hi,

I have already asked this question but not here.

I am looking for pack/unpack perl-like functions in elisp.

unpack takes a string and expands it out as a list of values
(pack does the opposite).

Are you aware of something like this ?

(append "foo" nil) => (102 111 111)

(equal '(102 111 111) '(?f ?o ?o)) => t

(apply 'string '(?f ?o ?o)) => "foo"

--
Kevin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]