Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
5
Task/SEDOLs/Oforth/sedols.oforth
Normal file
5
Task/SEDOLs/Oforth/sedols.oforth
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
func: sedol(s)
|
||||
[ 1, 3, 1, 7, 3, 9 ] s
|
||||
zipWith(#[ dup isDigit ifTrue: [ '0' - ] else: [ 'A' - 10 + ] * ]) sum
|
||||
10 mod 10 swap - 10 mod
|
||||
StringBuffer new s << swap '0' + <<c ;
|
||||
Loading…
Add table
Add a link
Reference in a new issue