We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Array Of N Elements
Array Of N Elements
Sort by
recency
|
194 Discussions
|
Please Login in order to post a comment
object Solution extends App {
import scala.io._
val readInt = StdIn.readInt()
def f(num:Int) : List[Int] = {
val list = List.range(0,num)
return list
} println(f(readInt)) }
Weld neck flanges, also known as welding neck flanges, are an important part of various industries, providing a strong connection between pipes, valves, and equipment. These specialized flanges have unique features that make them useful in challenging situations. Let’s explore different aspects of weld neck flanges, including their types, uses, materials, dimensions, and standards.
Haskell wins again fn n = [1..n]
implementation using Common Lisp
(defun f(n) (if(> n 1) (list n (f(- n 1))) ) )
Scala. They need to fix the question for this language.