From d18a8809cf476caa78c23c1143d1e5791f2bc8e4 Mon Sep 17 00:00:00 2001 From: razetime Date: Mon, 13 May 2024 07:24:46 +0800 Subject: [PATCH] correct exercise 8.1 --- code/08.k | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/08.k b/code/08.k index d4ad443..24abf26 100644 --- a/code/08.k +++ b/code/08.k @@ -1,5 +1,6 @@ / 1. Write a function to convert seconds into hours, minutes and seconds, using `\`. -bs:24 60 60\ / mixed base conversion. +bs:0 60 60\ / mixed base conversion. + / Putting a 0 in the 'hours' slot preserves the hours value as is. / 2. Write a function that takes a list of numbers `x` and a number `y`. Group the numbers in `x` into a dictionary based on whether they are multiples / of `y`. `f[1 3 5 9;3]` -> `(0;1)!(1 5;3 9)`