{"size": 1050, "ext": "scrbl", "max_stars_repo_path": "scribblings/operations/pull.scrbl", "max_stars_repo_name": "jadudm/data-table", "max_stars_repo_stars_event_min_datetime": "2019-12-13T10:01:51.000Z", "max_stars_repo_stars_event_max_datetime": "2019-12-13T10:01:51.000Z", "max_issues_repo_path": "scribblings/operations/pull.scrbl", "max_issues_repo_name": "jadudm/data-table", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "scribblings/operations/pull.scrbl", "max_forks_repo_name": "jadudm/data-table", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.3783783784, "max_line_length": 204, "alphanum_fraction": 0.5980952381}
#lang scribble/manual
@(require racket racket/runtime-path)
@require[@for-label[racket db]]
@(require scribble/eval
          scribble/struct
          racket/sandbox
          data-table)
@(require "drawing-support.rkt")

@interaction-eval[#:eval the-eval
                   (require data-table)]

@;{ -------------------------------- pull ---------------------------------- }
@title[]{pull}
@defproc[#:link-target? false
         (pull
          [table table?]
          [column string?]
          )
         vector?]{ 
Pulls the values out of a column as a vector.
}

@(define-runtime-path pull.png (build-path "images" "pull.png"))
@centered{
  @(image #:scale 0.75 pull.png)
}


The previous examples have used @racket[pull] to extract values from tables. If we wanted to pull both the city and state from the north-easterly cities, and combine them into strings, it might look like:

@examples[#:eval the-eval
(for/list ([city  (pull north-easterlyT "City")]
           [state (pull north-easterlyT "State")])
  (format "~a, ~a" city state))
]
