From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0MRBJCRZiGDWHQAAgWs5BA (envelope-from ) for ; Tue, 27 Apr 2021 20:34:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id yIcXICRZiGAbLwAA1q6Kng (envelope-from ) for ; Tue, 27 Apr 2021 18:34:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0CA96115B0 for ; Tue, 27 Apr 2021 20:34:12 +0200 (CEST) Received: from localhost ([::1]:55654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbSXD-0004zC-5A for larch@yhetil.org; Tue, 27 Apr 2021 14:34:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbSWu-0004yw-QV for guix-devel@gnu.org; Tue, 27 Apr 2021 14:33:52 -0400 Received: from mout01.posteo.de ([185.67.36.65]:51151) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbSWp-0002Vf-Fe for guix-devel@gnu.org; Tue, 27 Apr 2021 14:33:52 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id D1C94240027 for ; Tue, 27 Apr 2021 20:33:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1619548424; bh=fC2vGgwyn9CSphaXFQm1GaGzT5UNgiySu7eui8bD0SQ=; h=Date:From:To:Cc:Subject:From; b=MSfwTu6A4sTWYggm23xaj+Tnwb5NfiF39ZRZAnKw9Iyk/xlPY6/i0uumKTSc9LJp1 JzKXHaN/eJeSklBPpU4XMYN3G9pIQJACLGM5UyNPGh1MotwTYC2kYICzTJNwRXqni1 sQgomAi6VzhurHnEafoP2HCHwP3VuKmMPTmTqwjmE4b8kBih+Mr9XLneR5C2PR8CsA ibzLQBRENeFyu+qvztYkAVMBAoOzCeyoGIey1FeOLkgv/ZOeyQnTt/rNuZOv/M9Toa 3Ga+IQMXvZU9Q/woCYrXeElvvqCtngGgymlNjnOpA5yKz19KftbZ9KIIO+Dr1UGpMO GvGhl4iL5imbQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FV9Pz1PLJz6tmL; Tue, 27 Apr 2021 20:33:42 +0200 (CEST) Date: Tue, 27 Apr 2021 18:33:35 +0000 From: Luciana Lima Brito To: Christopher Baines Subject: Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons. Message-ID: <20210427153335.1e23f35e@lubrito> In-Reply-To: <20210427101001.0242f90e@lubrito> References: <20210421152914.461bbdbb@lubrito> <87bla6iwli.fsf@cbaines.net> <20210422170040.37941083@lubrito> <875z0ehyl3.fsf@cbaines.net> <20210422180208.28473e41@lubrito> <87zgxqggw9.fsf@cbaines.net> <20210423181551.01c42455@lubrito> <87bla4hdto.fsf@cbaines.net> <20210425171507.6a259017@lubrito> <87o8e1foly.fsf@cbaines.net> <20210426161103.0647ee3f@lubrito> <87im48g2s1.fsf@cbaines.net> <20210427101001.0242f90e@lubrito> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=lubrito@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619548452; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=CcjRC/+bAV1ONGU8k/KwQt5LhaV9KRFelfZ66JbZSfM=; b=gbyhTwSrKDhy1vVmRHnLndlYdmV6nLwIJFd+Wi6jxB/FDUW0ovLycalSgUM/6Mvr3HWjj+ De6ywrLyYHkl7/XKgQcwo2T+bLBKqrT/2x5vwUGeBPjDG33PkiCJYRNwF4c2zCKijKpNtz oOaPWstn6E/m3ZLkIB+NEUDNHi6+qH3HH+xWwvnJygOc8F4X5poVSW8ZVLGJED/0OYv+Dl ngiCdyHbQJvVm749ZbQWuPVU8gqY038b6mGsaFMNQGIUwpgWsRGg4CausZT4vx1qIODAur rFSFbomTwJ2r8tXSJSk+SffYfPkgSbkwT7tdYXqU06FdYleOnjB5SQz79Tq2wA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619548452; a=rsa-sha256; cv=none; b=EGR2hlKUUDMGqM2Wa73uA1tTJ1E/DLQSsliAou8v7kq0XwXKIzee2gUWNB5yWApc4BCGEw miei4Sx5vNRSdK1OjVVO17M0XSy1adSY4KITj04tV/j7Roj3LQLiF6jcCDH0g33A+XHnMx 3/MP/YfKrDdKeEJfDf82pKOUaaeqs7GBuhSvlN0Icg3d07Bk787jUxcgjdJ+3o94gqObrs N+Xa1flmEkLtFVA1UvL/JFTYBeUJtqZXRtxgUghwGOpWbv8wn92dtVMPA0hdtAe9gqxohf 7AQyJu+VnMr/fK/rtEL7h0RnhN6sDh0UcFFdahNjNY9JYI3VSUe79OFKbyFXLA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=MSfwTu6A; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -2.65 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=MSfwTu6A; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 0CA96115B0 X-Spam-Score: -2.65 X-Migadu-Scanner: scn0.migadu.com X-TUID: IotuQLC3RHbW On Tue, 27 Apr 2021 13:10:01 +0000 Luciana Lima Brito wrote: > > Maybe add another procedure that combines group-to-alist but > > generates an alist with vectors as the values? > > (group-to-alist/vector maybe). I did it! :) It was so much simpler. I created a function group-to-alist/vector, based on the previous function, to which I added the map I was already using on the controller.scm for data-groups. (define (group-to-alist/vector process lst) (map (match-lambda ((label args ...) `(,label . ,(list->vector args)))) (group-to-alist process lst))) The only change needed on the html.scm is to use vector->list in the items, like this (map (lambda (alist) ... (or (vector->list items) '())) Please, tell me what you think is the best, this way or the other that I sent earlier with the patch? -- Best Regards, Luciana Lima Brito MSc. in Computer Science