Convert vector of lists into vector of vectors

前端 未结 2 362
我在风中等你
我在风中等你 2021-01-24 04:51

I have the following data in a .txt file:

1|John Smith|123 Here Street|456-4567
2|Sue Jones|43 Rose Court Street|345-7867
3|Fan Yuhong|165 Happy Lane|345-4533
         


        
2条回答
  •  孤街浪徒
    2021-01-24 05:29

    > (mapv vec testing)
    
    => [["1" "John Smith" "123 Here Street" "456-4567"]
        ["2" "Sue Jones" "43 Rose Court Street" "345-7867"]
        ["3" "Fan Yuhong" "165 Happy Lane" "345-4533"]]
    

提交回复
热议问题