Because that is the way it is defined to work, largely because it is the
more natural way of thinking about when building up an initial map.  Put is
defined the way it is because of multi-dimensional arrays, which need
multiple arguments to specify an index.

In practice, put() is rarely used for collections other than set and
bag...most people prefer to use the [] forms.

Rick

On Sat, Oct 11, 2014 at 2:17 PM, Walter Pachl <[email protected]>
wrote:

> Is there a good reason that of and put use index,item vs. item,index?
>
> r=.relation~of((a,b),(a,b))
> r~put(b,a)
> Say r~items
> Do el over r
>   say el r[el]
>   End
> Maybe it's not too late to reverse the order in of ?
> Walter Pachl
>
>
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
> http://p.sf.net/sfu/Zoho
> _______________________________________________
> Oorexx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://p.sf.net/sfu/Zoho
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to