Skip to content

Commit

Permalink
Add lt_n and gt_n
Browse files Browse the repository at this point in the history
  • Loading branch information
bdw committed Aug 4, 2014
1 parent f8bcded commit 1b461c4
Show file tree
Hide file tree
Showing 5 changed files with 555 additions and 435 deletions.
15 changes: 9 additions & 6 deletions foo.nqp
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#!/usr/bin/env nqp-m

sub quam(str $s, int $i, str $t) {
nqp::say(nqp::x($s, $i) ~ " " ~ $t);
sub quam() {
my num $i := 0.5;
while $i < 100.0 {
$i := $i * 1.1;
nqp::say("Value of \$i is $i");
}
}

my $i := 0;
my int $i := 0;
while $i < 100 {
quam();
$i := $i + 1;
quam("foo", $i, "bar");
}

}
Loading

0 comments on commit 1b461c4

Please sign in to comment.