Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -3,14 +3,14 @@ setBits: function [inp, n][
|
|||
print "n = " ++ (to :string n) ++ "; Width e = " ++ (to :string e) ++ ":"
|
||||
|
||||
result: new ø
|
||||
if? or? zero? e n =< 0 -> result: inp
|
||||
else [
|
||||
switch or? zero? e n =< 0 -> result: inp
|
||||
[
|
||||
result: split inp
|
||||
loop 0..e-1 'i [
|
||||
if inp\[i] = `1` [
|
||||
if inp\[i] = '1' [
|
||||
j: i + 1
|
||||
while [and? j =< i+n j < e][
|
||||
result\[j]: `1`
|
||||
result\[j]: '1'
|
||||
j: j + 1
|
||||
]
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue