RosettaCodeData/Task/Josephus-problem/J/josephus-problem-4.j

6 lines
128 B
Text
Raw Permalink Normal View History

2016-12-05 22:15:40 +01:00
NB. this is a direct translation of the algo from C code above.
Josephus2 =: 4 : '(| x&+)/i. - 1+y'
2013-06-05 21:47:54 +00:00
2016-12-05 22:15:40 +01:00
3 Josephus2 41
2013-06-05 21:47:54 +00:00
30