File xrotate.icn

Summary

###########################################################################

	File:     xrotate.icn

	Subject:  Procedure to rotate values in list or record

	Author:   Ralph E. Griswold

	Date:     April 30, 1993

###########################################################################

   This file is in the public domain.

###########################################################################

  xrotate(X, i) rotates the values in X right by one position.  It works
  for lists and records.

  This procedure is mainly interesting as a recursive version of

	x1 :=: x2 :=: x3 :=: ... xn

  since a better method for lists is

	push(L, pull(L))

###########################################################################
Procedures:
xrotate

This file is part of the (main) package.

Source code.

Details
Procedures:

xrotate(X, i)



This page produced by UniDoc on 2021/04/15 @ 23:59:54.