A swimlane is used in a UML Activity Diagram in order to group related activities into one section, much like a system boundary in a UML Use Case Diagram.

Example

  |Taking input|
start
:Input number;
if ("Is number odd")
  |Number is odd|
  :Add 7;
  :Multiply by 2;
  :Divide by 9;
else 
  |Number is even|
  :Add 2;
  :Multiply by 99;
  :Divide by 3;
endif
stop

This example shows maths operations arbitrarily grouped by swimlanes