Ooops
October 18, 2021, 21:50:16

Author Topic: Probaly an addition to INSERT in reference  (Read 424 times)

Offline jsalai

  • Jr. Member
  • **
  • Posts: 41
Probaly an addition to INSERT in reference
« on: July 16, 2021, 09:18:36 »
for those who may need to INSERT more values at position, beware:
INSERT adds them in REVERSE order!

Code: [Select]
a=seq(1,6,6)
b=a
?a
insert a,2,9,10,11
?a
' is equivalent to
insert b,2,9
insert b,2,10
insert b,2,11
?b
' the result is this:
c=[1,2,11,10,9,3,4,5,6]
if a!=b then throw "error"
if a!=c then throw "error"
end
« Last Edit: July 16, 2021, 09:20:19 by jsalai »
I won't belong to any organization that would have me as a member.
[Groucho Marx]

Offline chrisws

  • Full Member
  • ***
  • Posts: 117
    • SmallBASIC
Re: Probaly an addition to INSERT in reference
« Reply #1 on: July 24, 2021, 01:33:58 »
Thanks for the update.

Just in case you or someone would like to help updating the docs, here's the steps:

1. Create an account with github. Make sure you setup two-factor authentication!

2. Head over to here: https://github.com/smallbasic/smallbasic.github.io

3. Click "Fork" to make your own copy in your account.

4. From your copy, find the article that you'd like to update, then click the pencil icon to start editing.

- The format is "markdown". It's pretty simple. There are many online docs explaining this.
- The reference docs are under the folder _build/reference
- Use the preview link to make sure it looks fine.
- There are plenty of docs that could sure use some attention
- Note the file is ultimately processed with a tool called "pandoc", not github.

5. Click commit, then click "Open pull request".

6. Nag me until I merge your changes :)

This is all done entirely in a web browser.

« Last Edit: July 24, 2021, 01:35:30 by chrisws »

Offline jsalai

  • Jr. Member
  • **
  • Posts: 41
Re: Probaly an addition to INSERT in reference
« Reply #2 on: July 24, 2021, 10:47:18 »
Thanks for the update.

Just in case you or someone would like to help updating the docs, here's the steps:

1. Create an account with github. Make sure you setup two-factor authentication!

2. Head over to here: https://github.com/smallbasic/smallbasic.github.io

3. Click "Fork" to make your own copy in your account.

4. From your copy, find the article that you'd like to update, then click the pencil icon to start editing.

- The format is "markdown". It's pretty simple. There are many online docs explaining this.
- The reference docs are under the folder _build/reference
- Use the preview link to make sure it looks fine.
- There are plenty of docs that could sure use some attention
- Note the file is ultimately processed with a tool called "pandoc", not github.

5. Click commit, then click "Open pull request".

6. Nag me until I merge your changes :)

This is all done entirely in a web browser.

Thanks! Looks straightforward...
But... (always a but...)
Sometimes an observation looks weird (as in THIS case ?!?!?!?!), and may be probably a cause for some changes in design...
I believe, it is safer to inform you first (the leader of the project). I understand, this is an additional job for you, but the decision is yours. Just my humble opinion...
I won't belong to any organization that would have me as a member.
[Groucho Marx]

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal