added Transpose(), randomly transpose a string
This commit is contained in:
@@ -1,7 +1,18 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
import (
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"time"
|
||||
|
||||
"s.mcquay.me/dm/psyfer/psyfer"
|
||||
)
|
||||
|
||||
func init() {
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
}
|
||||
|
||||
func main() {
|
||||
fmt.Println("hello psyfer")
|
||||
fmt.Println(psyfer.Transpose("hello world"))
|
||||
fmt.Println(psyfer.Transpose("hello"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user