Skip to content

Instantly share code, notes, and snippets.

View eduardo22i's full-sized avatar
👨‍💻
//coding from 🏠

Eduardo Irías eduardo22i

👨‍💻
//coding from 🏠
View GitHub Profile
scala> def squp (x:Int) = x*x
squp: (x: Int)Int
scala> squp(2)
res8: Int = 4
scala> squp(3)
res9: Int = 9
@eduardo22i
eduardo22i / And Scala
Last active December 14, 2015 16:39
Propuesta
def and2 (x:Boolean, y:Boolean) = println( x&y)
and2: (x: Boolean, y: Boolean)Unit
scala> and2(true,true)
true
scala> and2(true,false)
false
scala> and2(false,false)