Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Jensens-Device/Erlang/jensens-device.erl
Normal file
11
Task/Jensens-Device/Erlang/jensens-device.erl
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
-module( jensens_device ).
|
||||
|
||||
-export( [task/0] ).
|
||||
|
||||
task() ->
|
||||
sum( 1, 100, fun (I) -> 1 / I end ).
|
||||
|
||||
sum( I, High, _Term ) when I > High -> 0;
|
||||
sum( I, High, Term ) ->
|
||||
Temp = Term( I ),
|
||||
Temp + sum( I + 1, High, Term ).
|
||||
Loading…
Add table
Add a link
Reference in a new issue