시리즈: haskell
haskell
12 줄
· 업데이트 2026-02-03
StringOps.hs
haskell/StringOps.hs
-- Exercise 9
module StringOps where
-- Put a character at the front of a string
prepend :: Char -> String -> String
prepend ch s = ch : s
-- Put a character at the end of a string (recursive)
append :: Char -> String -> String
append ch [] = [ch]
append ch (x:xs) = x : append ch xs
-- (equivalently: append ch s = s ++ [ch])
관련 글
haskell
haskell
업데이트 2026-02-03
Adding.hs
Adding.hs — haskell source code from the haskell learning materials (haskell/Adding.hs).
글 읽기 →
haskell
haskell
업데이트 2026-02-03
Area.hs
Area.hs — haskell source code from the haskell learning materials (haskell/Area.hs).
글 읽기 →
haskell
haskell
업데이트 2026-02-03
Chess.hs
Chess.hs — haskell source code from the haskell learning materials (haskell/Chess.hs).
글 읽기 →
haskell
haskell
업데이트 2026-02-03
ChessGraphics.hs
ChessGraphics.hs — haskell source code from the haskell learning materials (haskell/ChessGraphics.hs).
글 읽기 →
haskell
haskell
업데이트 2026-02-03
Examples.hs
Examples.hs — haskell source code from the haskell learning materials (haskell/Examples.hs).
글 읽기 →
haskell
haskell
업데이트 2026-02-03
Fibonacci.hs
Fibonacci.hs — haskell source code from the haskell learning materials (haskell/Fibonacci.hs).
글 읽기 →