I hereby claim:
- I am zeqing-guo on github.
- I am lambda42 (https://keybase.io/lambda42) on keybase.
- I have a public key ASCUwTZ-V94OInZB0D_XPOFhvCZULnbINv90AlY6HE8VZgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
-- | Zeqing Guo, August, 2015 | |
module Main where | |
class Fluffy f where | |
furry :: (a -> b) -> f a -> f b | |
-- Exercise 1 | |
-- Relative Difficulty: 1 | |
instance Fluffy [] where |
This is the notes of Introduction to Clojure.
In the REPL, at any time you can see the documentation for a given function:
(doc some-function)
@@ -19,12 +19,14 @@ public static void main(String[] args) { | |
spacebar += " "; | |
} | |
System.out.print(spacebar); | |
- for (int k = 1; k <= n-j+1; k++) { | |
+ for (int k = 1; k <= 2 * (n-j)+1; k++) { | |
star += "*"; | |
} | |
System.out.print(star); | |
System.out.println(); |
package lab3_2; | |
import java.util.Scanner; | |
public class Lab3_2 { | |
public static void main(String[] args) { | |
Scanner input = new Scanner(System.in); | |
System.out.print("Please enter a number(positive interger): "); | |
int n = input.nextInt(); | |
System.out.println("Your input is:\n" + n); | |
while (n < 1) { |