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
class WordNgram{ | |
private int size; | |
private String[] words ={}; | |
public WordNgram(int size){ | |
this.size = size; | |
} | |
public WordNgram(int size, String words){ | |
this.size = size; |
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
module BlackJack where | |
import Cards | |
import Wrapper | |
import Test.QuickCheck | |
import System.Random | |
{- 3.2 | |
size hand 2 = size (some card (Numeric 2) Hearts)(some(card Jack Spades) Empty)) | |
= 1 + size (some(card Jack Spades)Empty)) = 1 + 1 + size(Empty) = 1 + 1 + 0 = 2 |
OlderNewer