Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: db module
- X-seq: zsh-workers 17776
- From: Clint Adams <clint@xxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: db module
- Date: Sun, 6 Oct 2002 01:32:29 -0400
- Cc: Zsh workers <zsh-workers@xxxxxxxxxx>
- In-reply-to: <E17w1iC-00012d-00@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <E17w1iC-00012d-00@xxxxxxxxxxxxxxxxxx>
> typeset -A things -S db -f /tmp/newdb
> typeset string -S mapfile -f /tmp/file
Someone suggested tying assocs to functions, so we could add something
like
f() { print $(( $1 * 2 )) }
typeset -A twice -S function -f f
print $f[2]
I'm not sure that there are any useful applications for this though.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author