Skip to content

Commit

Permalink
removed dead examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Apr 4, 2024
1 parent efd207f commit 458fb89
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/org/rascalmpl/library/util/Progress.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,6 @@ The total number of steps is the only required parameter to be passed in. All ot
It is inspired on the progressbar described here: https://stackoverflow.com/questions/3173320/text-progress-bar-in-the-console
}
@examples{
```rascal-shell
import util::Progress;
int total = 10;
pb = progressBar(total, length = 15, limit = 100);
for (i <- [0..total]) {
pb.report(" : <i+1> of <total>");
}
pb.finished();
```
}
tuple[void(str) report, void() finished] progressBar(int total, str prefix = "Progress:", int length = 50, int limit = total, str fill = "\u2588", str unfill = "-", str printEnd = "\r") {
limit = limit > total ? total : limit;

Expand All @@ -63,16 +52,6 @@ tuple[void(str) report, void() finished] progressBar(int total, str prefix = "Pr
It returns a function that can be called to make the spinner spin one rotation.
This function takes a `suffix` string parameter that will be displayed behind the spinner
}
@examples{
```rascal-shell
import util::Progress;
import util::Math;
sp = spinner();
while (n := arbInt(100), n != 1) {
sp("<n>");
}
```
}
void (str) spinner(str prefix = " ", str printEnd = "\r") {
int stat = 0;
Expand Down

0 comments on commit 458fb89

Please sign in to comment.