Damian Conway <[EMAIL PROTECTED]> writes: > > Are the two values of a pair restricted in anyway? All your examples > > were scalar. > > Yes. The two components must be scalars. > The key is stringified iff it's a bareword. > Otherwise no restrictions. So assuming pairs are scalars... $list = a => b => c => d => e is equivalent to: $list = a => (b => (c => (d => e))) And we could do: key(value(value $list)) == 'c' And other such lispish magic? How about: (a => b => (c => d => e) => f => g) Maybe we could have a pragma: use lisplike; Which would make (a b (c d e) f g) == (a => b => (c => d => e) => f => g) Hmm... you know, once more I'm not sure if this is ugly or beautiful, but it's certainly fascinating. I think I like it. -- Piers
- Re: RFC 84 (v1) Replace => (stringifying comma) with =&... Jon Ericson
- Re: RFC 84 (v1) Replace => (stringifying comma) with =&... Brad Hughes
- Re: RFC 84 (v1) Replace => (stringifying comma) with =&... Damian Conway
- Re: RFC 84 (v1) Replace => (stringifying comma) wi... Jon Ericson
- Re: RFC 84 (v1) Replace => (stringifying comma... Chaim Frenkel
- Re: RFC 84 (v1) Replace => (stringifying comma) wi... Nathan Wiger
- Re: RFC 84 (v1) Replace => (stringifying comma) wi... John Porter
- Re: RFC 84 (v1) Replace => (stringifying comma) with =&... Chaim Frenkel
- Re: RFC 84 (v1) Replace => (stringifying comma) with =&... Damian Conway
- Re: RFC 84 (v1) Replace => (stringifying comma) wi... Piers Cawley
- Re: RFC 84 (v1) Replace => (stringifying comma... Piers Cawley
- Re: RFC 84 (v1) Replace => (stringifying c... Ken Fox
- Re: RFC 84 (v1) Replace => (stringifyi... Nathan Wiger
- Re: RFC 84 (v1) Replace => (stringifying comma) with =&... Glenn Linderman
- Re: RFC 84 (v1) Replace => (stringifying comma) wi... Bart Lateur
- Re: RFC 84 (v1) Replace => (stringifying comma... Glenn Linderman
- Re: RFC 84 (v1) Replace => (stringifying comma) wi... Mark Cogan
- Re: RFC 84 (v1) Replace => (stringifying comma) with =&... Damian Conway
- Re: RFC 84 (v1) Replace => (stringifying comma) wi... Glenn Linderman