슬기로운 재택생활

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

2023/12/19 1

[Brave Clojure #4] reduce로 map, filter, some 구현하기

map의 설명을 마치 고 저자는 이렇게 말합니다. "If you want an exercise that will really blow your hair back, try implementing map using reduce, and then do the same for filter and some after you read about them later in this chapter." 안해 볼 수 없겠죠 (defn map-by-reduce [f xs] (seq (reduce #(conj %1 (f %2)) [] xs))) (map-by-reduce inc [1 2 3 4]) ;; => (2 3 4 5) (def food-journal [{:month 1 :day 1 :human 5.3 :critter 2..

프로그래밍/Clojure 2023.12.19
이전
1
다음
더보기
프로필사진

  • 분류 전체보기 (15)
    • 장비 (0)
      • 키보드 (0)
    • 게임 (9)
      • 유로트럭으로 운전면허 따기 (9)
      • FC 온라인 (0)
    • 프로그래밍 (6)
      • 컴퓨터 프로그램의 구조와 해석 (0)
      • 프로그래밍 문제 해결 (1)
      • Clojure (5)
    • 일상 (0)

Tag

운전 면허, 게임패드, G29, clojure, 컨트롤러, 구글, 유로트럭, 운전, FC 온라인, sicp, Foo Bar 챌린지, brave clojure, 피파온라인4, 푸바챌린지, t300rs, 유로 트럭, 레이싱휠, 운전면허,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2023/12   »
일 월 화 수 목 금 토
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바