Текст не остается в родительском элементе div при изменении значения top

В Racket,

#lang racket

(define (power-set xs)
  (cond
    [(empty? xs) (list empty)]                 ; the empty set has only empty as subset
    [(cons? xs)  (define x  (first xs))        ; a constructed list has a first element
                 (define ys (rest  xs))        ; and a list of the remaining elements
                 ;; There are two types of subsets of xs, thouse that
                 ;; contain x and those without x.
                 (define with-out-x            ; the power sets without x
                   (power-set ys))                 
                 (define with-x                ; to get the power sets with x we 
                   (cons-all x with-out-x))    ; we add x to the power sets without x
                 (append with-out-x with-x)])) ; Now both kind of subsets are returned.

(define (cons-all x xss)
  ; xss is a list of lists
  ; cons x onto all the lists in xss
  (cond
    [(empty? xss) empty]
    [(cons?  xss) (cons (cons     x (first xss))    ; cons x to the first sublist
                        (cons-all x (rest xss)))])) ; and to the rest of the sublists

Чтобы проверить:

(power-set '(a b c))
0
задан Amine KOUIS 5 March 2019 в 16:50
поделиться

2 ответа

Вам нужно будет назначить положение относительно родителя community-block, поэтому в этом случае установите row_com на position: relative.

0
ответ дан David Nguyen 5 March 2019 в 16:50
поделиться

добавить position:relative к основному родительскому элементу и ширину, чтобы содержать абсолют внутри.

0
ответ дан mm-codes 5 March 2019 в 16:50
поделиться