Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: db module



> 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