diff options
Diffstat (limited to 'challenge-240/razetime/factor/ch-2.factor')
| -rw-r--r-- | challenge-240/razetime/factor/ch-2.factor | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/challenge-240/razetime/factor/ch-2.factor b/challenge-240/razetime/factor/ch-2.factor new file mode 100644 index 0000000000..bdff6ba71a --- /dev/null +++ b/challenge-240/razetime/factor/ch-2.factor @@ -0,0 +1,5 @@ +USING: kernel sequences ; +IN: pwc-240-1 +: ch-1 ( seq -- seq' ) dup nths ; +{ 0 2 1 5 3 4 } ch-1 { 0 1 2 4 5 3 } assert= +{ 5 0 1 2 3 4 } ch-1 { 4 5 0 1 2 3 } assert= |
