From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: The different results obtained by apply function. Date: Thu, 7 Oct 2021 10:46:33 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3924"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 07 04:47:48 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYJRi-0000oo-RA for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 07 Oct 2021 04:47:46 +0200 Original-Received: from localhost ([::1]:50220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYJRg-0004y4-Uk for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 06 Oct 2021 22:47:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYJQn-0004x2-Rr for help-gnu-emacs@gnu.org; Wed, 06 Oct 2021 22:46:50 -0400 Original-Received: from mail-vs1-xe33.google.com ([2607:f8b0:4864:20::e33]:34608) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYJQk-0002cc-4i for help-gnu-emacs@gnu.org; Wed, 06 Oct 2021 22:46:47 -0400 Original-Received: by mail-vs1-xe33.google.com with SMTP id d18so5197635vsh.1 for ; Wed, 06 Oct 2021 19:46:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=9uVJoHIjZ++AAy+mocAxHEHnpvt6q5zGWiEbBBYXpKI=; b=FdC4ZE+nBAuTog7CS3w/ecxUcX3guwMsQOcHBdtnXqcUFQZSrZUAWiQAjQP8D4sRKd 7fCiD63mqsdPA6SFsjw+STdq+W2rAqk8E7ZugSfeX59CXYMmQrHn11NxRbof94KlJ6l9 GzaaojX7U9BQwafQgrRqGcsOauZszUXCD3Ud/0/2ZpWxqtXBggAZIX0/pz3g5nvzJ7Tm iDZHUru8I/TgZw8R3v2agJONvUx3mIclaoPtIoK72N8qkaVQ78LHmCSVH08JjCRGNEqG hgNzvKJLZ+pR3WPb51Z9v7EH1zk4I9GMjoIBHcqLzw/rSi+/7NdcqBzxTTx/enHTVr37 MhEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=9uVJoHIjZ++AAy+mocAxHEHnpvt6q5zGWiEbBBYXpKI=; b=d0NR4UlRe+6/SYzfx0OXX6uuPscgLds1x+JGD0azXEuPfL6SzVDJ/pt3NhI9g/BEk6 mBgGeCXEF4sBYhrlqUF0f7BIkA868/dpxm5IX05py6U5UXqjXA+Mq4xvgbpvDwZtbdWk guKoK4omGz4kQ/uFRa1XeXfGhwpbHgFdvIVAuRaFdoKqRHcaxux/dUcxPwjspamEqk+C 7kY6hTqeagcGBy4J55XR5/1B+YjQ5xt2B/Fyp3fbLKz9indhu7aRWn0yuK2dujZuwQMp ulugdKmhdQbaCF941fH64DNSnStXq8trJFNOl2MTdWAuCSKkL+Wa9hrezxGCOV7LJuTk wo+Q== X-Gm-Message-State: AOAM530B6i3C0HhOm6KpIOhLlhkIH4vO5wtLG+XbBGIZji0ENAsc+rYZ 1M6vNCWIpMo1RK1vSM2uxDhhuput615/nQYh7yN7+XCobdLES6YS X-Google-Smtp-Source: ABdhPJzjs/gmiCI598gpIWHXmFAMduC4FC5Opkdr46jcRCxSHCPSOhZjDPFXLBWY7mK+cHHTxBwGcnknJjfczZ28XxQ= X-Received: by 2002:a67:edd7:: with SMTP id e23mr2111849vsp.14.1633574804570; Wed, 06 Oct 2021 19:46:44 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::e33; envelope-from=hongyi.zhao@gmail.com; helo=mail-vs1-xe33.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:133631 Archived-At: I try to reproduce the results given here [1], as follows: (mapcar 'list '((1 2)(3 4))) ;; (((1 2)) ((3 4))) (funcall 'mapcar 'list '((1 2)(3 4))) ;; (((1 2)) ((3 4))) (apply 'mapcar 'list '((1 2)(3 4)) ()) ;; (((1 2)) ((3 4))) The last one is different from the one given on the URL above: (apply 'mapcar 'list '((1 2)(3 4))) ;; ((1 3) (2 4)) [1] https://stackoverflow.com/a/68876647 Any hints for this? -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province