This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.logikujo.form | |
import com.logikujo.Validator._ | |
import scalaz._ | |
import Scalaz._ | |
object Form extends App { | |
def toInt(s:String) = try { | |
s.toInt.some |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n = [1..3] | |
takeN = (n) -> (arr) -> | |
_add = (arr1,arr2) -> (i) -> arr1[i] = arr2[i] | |
arr1 = [] | |
(_add arr1, arr) i for i in [0..n-1] | |
test = ["a","b","c","d","e"] | |
res = (takeN 2) test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/lua | |
-- | |
-- Monty Hall | |
-- | |
-- | |
local chooseDoor = function () | |
return math.random(1,3) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sbs.oraculus.loserishoraculus | |
trait LoserishOraculus { | |
def showMeTheAnswer:String | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.noisesOfHill.exercises.EightQueens | |
import scalaz._ | |
import Scalaz._ | |
/** | |
* User: AitorATuin | |
* Date: 13/06/12 | |
* Time: 19:56 | |
* Little program to solve the epic problem of the Eight Queens. |
NewerOlder