{ Analytica Model Reverse_halves, encoding="UTF-8" } SoftwareVersion 6.3.6 { System Variables with non-default values: } SampleSize := 1000 TypeChecking := 1 Checking := 1 SaveOptions := 2 SaveValues := 0 {!-50299|DiagramColor Model: 65535,65535,65535} {!-50299|DiagramColor Module: 65535,65535,65535} {!-50299|DiagramColor LinkModule: 65535,65535,65535} {!-50299|DiagramColor Library: 65535,65535,65535} {!-50299|DiagramColor LinkLibrary: 65535,65535,65535} {!-50299|DiagramColor Form: 65535,65535,65535} NodeInfo FormNode: 1,0,0,,0,0,,,,0,,,0 {!-50299|NodeColor Text: 62258,62258,62258} {!-60000|Attribute AcpStyles} Model Reverse_halves Title: Reverse halves Description: Start with array A indexed by I, and a split point N that identifies a position along I. The challenge is to reverse the first N elements of A, and separately reverse the remaining elements after the Nth, to get a new array indexed by I.~ ~ The solution should work for 1<=N