What do you want to save?
Add Code snippet
New code examples
-
Lisp 2022-01-29 07:37:42
Write a function that computes the sum of all proper divisors of a given number lisp
(defun proper-divisors-recursive (product &optional (results '(1))) "(int,list)->list::Function to find all proper divisors of a +ve integer." (defun smallest-divisor (x) "int->int::Find the smallest divisor of an i... Add solution -
Other 2022-01-26 01:56:01
let keyword in kotlin
let takes the object it is invoked upon as the parameter and returns the result of the lambda expression. fun main(args: Array<String>) { var str = "Hello World" str.let { println("$it!!") } println(str) } The 'it' ... Add solution -
Kotlin 2021-11-16 19:10:14
kotlin iterate list exclude last one
package com.zetcode fun main() { val words = listOf("pen", "cup", "dog", "person", "cement", "coal", "spectacles") println() for (i in 0 until words.size - 1... Add solution
Best helpers
C.B
+5
Beatriz LO
+5
Matt McGuire
+5
Stacey
+5
Dan Aloni
+5
Mostafa 36a2
+5
RiCo
+5
Binarus
+5
Srihari
+5
Khrustzh
+5
Styne666
+5
Siranush A
+5
Newby
+5
Youssef
+5
Ron Short
+5
Cat812
+5
Alkasm
+5
Alexvoda
+5