[Jprogramming] Understanding C. , A.

David Ward Lambert b49P23TIvg at stny.rr.com
Tue Jan 31 23:44:53 HKT 2012


Are there simple versions of swap and of move_to_front that use C. , A.
or (other)?  My definitions use amend.  Thank you, Dave.

   1 5 swap 'abcdefgh'
afcdebgh
   
   3 move_to_front 'abc*ef'
*abcef


   swap=: ({~ |.)~`[`]}
   move_to_front=: ((({~ _1&|.)~`[`]})~ i.@:>:)~




More information about the Programming mailing list