Elastic for swimwear
Measure the body opening the pattern gives you, not the floppy edge of the cut cloth. Pin the elastic into quarters, stretch it so those quarters match the cloth, and sew with a zigzag that can stretch. If you sew the elastic flat, the leg or the neck will gape. If you stretch it too hard, the edge ruffles and the cloth can curl into a roll.
Clear elastic and a rubber swim elastic behave differently. Read the packet before you press. Heat can melt a clear elastic.
The lingerie elastic page is the lighter cousin. Do not assume a fold-over elastic is sold for chlorine.