Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
HVML
HVML Docs
Commits
0baecae2
Commit
0baecae2
authored
May 05, 2022
by
Vincent Wei
Browse files
more words for section 2.1
parent
4628e0b4
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
samples/fibonacci/fibonacci-4.hvml
View file @
0baecae2
...
...
@@ -13,13 +13,13 @@
<init
as=
"count"
with=
2
temp
/>
<section>
<dl>
<dl
id=
"myAnchor"
>
<init
as=
"last_one"
with=
0
temp
/>
<init
as=
"last_two"
with=
1
temp
/>
<iterate
on
1
by=
"ADD: LT 2000 BY $!.last_one"
>
<init
a
t
=
"last_one"
with=
"
$2!.
last_two"
temp
/>
<init
a
t
=
"last_two"
with=
"$?"
temp
/>
<init
a
s
=
"last_one"
at=
"#myAnchor"
with=
"last_two"
temp
/>
<init
a
s
=
"last_two"
at=
"#myAnchor"
with=
"$?"
temp
/>
<update
on=
"$4!"
at=
".count"
to=
"displace"
with
+=
1
/>
<dt>
$%
</dt>
...
...
samples/fibonacci/fibonacci-5.hvml
View file @
0baecae2
...
...
@@ -18,8 +18,8 @@
<init
as=
"last_two"
with=
1
temp
/>
<iterate
on
1
onlyif=
$L.lt($0<,
2000)
with=
$MATH.add($0<,
$!.last_one)
>
<init
a
t
=
"last_one"
with=
"$2!.last_two"
temp
/>
<init
a
t
=
"last_two"
with=
"$?"
temp
/>
<init
a
s
=
"last_one"
at=
"2"
with=
"$2!.last_two"
temp
/>
<init
a
s
=
"last_two"
at=
"2"
with=
"$?"
temp
/>
<update
on=
"$4!"
at=
".count"
to=
"displace"
with
+=
1
/>
<dt>
$%
</dt>
...
...
zh/hvml-spec-v1.0-zh.md
View file @
0baecae2
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment