YAPC::EU 2018 Glasgow Update!
This commit is contained in:
parent
22f33d4004
commit
4e2d22a71d
1170 changed files with 15042 additions and 3047 deletions
9
Task/Knuths-algorithm-S/Phix/knuths-algorithm-s-2.phix
Normal file
9
Task/Knuths-algorithm-S/Phix/knuths-algorithm-s-2.phix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
enum RID, I, SAMPLE, CLOSURE_LEN=$
|
||||
...
|
||||
function s_of_n_creator(int n)
|
||||
sequence closure = repeat(0,CLOSURE_LEN)
|
||||
closure[RID] = routine_id("s_of_n")
|
||||
closure[I] = 0
|
||||
closure[SAMPLE] = repeat(0,n)
|
||||
return closure
|
||||
end function
|
||||
Loading…
Add table
Add a link
Reference in a new issue